I used to use a program called sanur.exe (runas backwards) combined with the tokenization of the kix scripts using the /t command. It allowed me to pass the password as well as username. It's not a totally secure method by any means, but the scripts were at least obfuscated due to the tokenizing.

http://www.commandline.co.uk/sanur_unsupported/index.html