in reply to
Re^2: How to connect to unix machine from Windows and execute command
in thread How to connect to unix machine from Windows and execute command
Read the question a little too fast, sorry.
The general security issue of passwords and keys being available to a script still holds though. Between Windows hosts there are systems already in place to facilitate authorization/authentication that's usually secure enough.
Not so if you hack together a script for doing stuff cross-platform, without a firm understanding of the risks. I'm sure you're well aware but everyone else isn't.
Time flies when you don't know what you're doing