If can add my 10 cents..... In Linux is quite straight to execute any command to a remote machine. The "secret" tool is called SSH.
As explained in the ssh man pages "
ssh (SSH client) is a program for logging into a remote machine and for executing commands on a remote machine."
For example
Obviously the problem is if you want to executes all the commands as batch file: in this case how solve the SSH login prompt? Your smart solution would be to use an automatic logging throught "key authentication". You can find info about this last point
here.
At this point, if you really want to do more magic things, you can just use SCP to copy a batch file into the remote machine and call it through SSH whenever you need.
ok... that were my 10 cents