If I am understanding you correctly, I have done the same by marking the script
as executable, then creating a symbolic link to the script, naming the link
whatever.exe.
Then I just call whatever.exe 'normally' -- system("whatever.exe") or in my case
shell("whatever.exe") -- via my win32 app.