I'm thinking the best solution might be to set up passwordless authentication via SSH and set the remote computer details in the script?
That's the way to go. You can run a command on a remote server like this:
ssh user@host.com 'echo "I'm on the server!!!" ' ___________________ Ben Jackson Diretor de Desenvolvimento
+55 (21) 2256-1022 ben@incomumdesign.com http://www.incomumdesign.com