Try adding...
 Code:
? "Error: "+@Error+@CRLF+"Error Desc: "+@SError

After some of the statements you expect the script to run, to see whats happening. Also it's helpful to add a line with "get $" at the end so that the script will not close until you hit a key.