I'm remote connecting to a linux machine from windows using PLINK and would like to execute some commands in a batch script right after connecting, but it seems I cannot keep the terminal alive.
After reading this little nugget here, I thought that a -t flag would suffice, but that didn't work.
plink my_username@123.456.789.10 -pw my_pass -batch -t "cd /home/app/"