How do you, via a script, specify the password, and a command to run, once an su/sudo/ssh has been executed?
TODO: figure this out
Otherwise, you can do sudo -S, and pipe the password in to stdin.
(better options are: NOPASSWD; any PAM module, such as pam_ssh_agent_auth)
If it's PuTTY on the client end, use -pw.
(better options are: 1) public/private keys, and 2) use ssh-agent)