Then start the script either with /d or put DEBUG ON into the first line of your script and start debugging it by stepping through it to see where it fails.
_________________________
There are two types of vessels, submarines and targets.