You can do this with:
plink.exe -ssh -pw <password> <username>@<hostname/IP> -m commands.txt
Then in the commands.txt file you just put in the commands that you wish to run within the session. This has been tested on Linux.
The ramblings of a computer geek
You can do this with:
plink.exe -ssh -pw <password> <username>@<hostname/IP> -m commands.txt
Then in the commands.txt file you just put in the commands that you wish to run within the session. This has been tested on Linux.