If you have a simple test script with just one USE statement in it like
code:
 USE f: '\\pc01\apps\'

, does it still happen. also, you might want to reformat your code to take variables outside of strings like
code:
$a=$b+'test'+$c
;not
$a='$btest'+'$c'

I'm not sure if it helps but it'll make the code look cleaner.
_________________________
There are two types of vessels, submarines and targets.