title: Executing (sudo) subcommands using Plink
body: <p>I am trying to command Linux machine from Window PowerShell. The commands are dependent on the fail/pass of the commands before. Therefore, I have to put all the commands together. I have tried multiple ways of putting commands together but at the ends I only receive the output of the first command. </p>
  
  <pre><code>PS C:\Users\sams&gt; plink -ssh -l username -pw root username@10.223.26.34 -t
        "sudo -i &amp;&amp; cd /root/docker/storm-supervisor/ &amp;&amp; ./stop-all.sh"
  </code></pre>
  
  <p>The actual result:  Only receives the output of the first command. </p>
  
  <p>Expected result: Receives output of the final command. </p>