Passing Log in Credentials with Pushd? other command?
You can use:
net use \\RemoteComputer\c$ password /user:MY_DOMAIN\remoteUsername
"\\RemoteComputer\c$\Program Files\Java\jre6\bin\java" -version"
net use \\RemoteComputer\c$ /d
(Edited to add simplifications from grawity from comments. Learn something new every day!)