Have you tried opening a DOS prompt and running the script manually? If the script is abending then you will see the error(s).

If the script runs OK then the error is probably related to the way that you are calling the script.

If your script does not contain sensitive information then post it here for review - sometimes it just needs another set of eyes to look at the problem.