Maybe there are mismatched quotes elsewhere in the script. Try creating a new scriptlet with just the bare necessities.
If that doesn't do it, it could be that the app is sensitive to the current dir which would be different in a DOS box vs. 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.