title: Exit Plink when command finishes
body: <p>I'm trying run multiple command lines via <code>plink.exe</code>. After batch is finished. I want to exit this and execute new command line</p>
  
  <p>My script in <code>execute.bat</code> file</p>
  
  <pre class="lang-none prettyprint-override"><code>(
  echo cd /appl/
  echo sudo -s
  echo cd apache-tomcat/webapps/Test
  echo sh ./J50X100.sh
  ) | plink.exe -batch host -l user -pw pass
  </code></pre>
  
  <p>Actual: It's still in remote, I cannot execute new command line</p>
  
  <p><img src="https://i.stack.imgur.com/xitOz.png" alt="Actual details here"></p>
  
  <p>Expected: Exit this and is able to execute new command line</p>