Have you tried creating a simple script just to see if it hangs?

 Code:
? @kix
? "Hit Enter to exit"
gets $RC


If that hangs, let us know. If not, add a drive mapping, and check again. Then a copy command, and check again. The idea is to add one key element at a time from your original script until you find where it is hanging.