I doubt it has anything to do with the script. My guess is the script is not even found. Is there a particular reason why you would not use a BATch file and code in the full path to the script?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.