You cna delete the content of an environment variable at the end of your script. However, sinc ethe password is still plain-text it's not really secure. There are examples on this board using SU.EXe with encrypted passwords. Alternatively, you might want to use the Taks Scheduler since that one stores the password in encrypted form and it can be scheduled remotely, thus not storing anything on the user's computer.
_________________________
There are two types of vessels, submarines and targets.