You should be able to exec anything although you won't have any environment variables, including a PATH, so you will need to use full paths
-rwxr-xr-x 1 robh itg    6947 Oct 25  2002 yourn.cgi
/nfs/nfs1/home/robh/cgi-pub
id
SERVER_NAME=cgi.luddy.indiana.edu
uid=18396(robh) gid=1010(itg) groups=1010(itg),500(sharks),501(burrow),1076(sysadmin),1432(facil),3043(burrow-docker),3045(sav-all),59986(vboxusers)
This is an echo test
uid=18396(robh) gid=1010(itg) groups=1010(itg),500(sharks),501(burrow),1076(sysadmin),1432(facil),3043(burrow-docker),3045(sav-all),59986(vboxusers)