in reply to Figuring out the environment

Oh I forgot to mention that there is no shebang line.

Does that mean it's just running the script like a comand line batch file?