As I stated earlier how do you know that your script is actually running? Everything you've said so far indicates to me that you don't really run the script.

Maybe it's now time to really do what I suggested and start with some small stuff likethe 'Hello' script.
_________________________
There are two types of vessels, submarines and targets.