I don't use cmd.exe either because the correct syntax is %COMSPEC%.

However, I do have to wonder about your understanding of security that you are willing to write passwords in plain text into a script.
_________________________
There are two types of vessels, submarines and targets.