the beep is probably a major error which makes the script to end.

so, what you need to do is start the script with /d switch to see what line is has the error.

what I suspect is just simple syntax error
_________________________
!

download KiXnet