Quote:

the file needs to be on the remote machine

copy it to the remote PC.
the command that is executed must be as if you were typing it at the remote PC's console




If the file is to be copied to the remote m/c then the whole purpose of my script gets defeated. I wanted that the file & the script BOTH should be kept on the Server & should run from there itself.

I am getting a wild idea, using Radimus's fnRemoteExec, is it possible to copy the file on server location to the remote machine & then run the same.