I have been having some trouble with our script and am trying to debug it. However, when I execute the debug command the first error returned is rem @echo off is not a recognized command (unknown command!). The script is started from a batch file and this is the first line within that batch file. Is this batch file incorrectly written? Any help is appreciated.

I am currently trying to debug the script from the command line. I have added the Get $x as suggested and I really didn't see any change. The only way I can debug the entire script is to suppress or comma out the hide console command in the script.