OpenSSH does not execute commands when they are issued from the command line.
I connect from a Win PC to a Win server (2003), using openssh. If I type the name of the bat file from the prompt, it starts. But when I add the command to the ssh command it does not work:
That's because ssh is looking for "test2.bat" on the remote side, where it probably doesn't exist. You have to copy it there first using scp (or something similar) (assuming the remote side knows how to handle Windows Batch files)