title: Can't run commands on other user (su) using Plink in PowerShell
body: <p>I'm trying to use Plink to connect to a remote UNIX server, <code>su</code> to another user (without password) and finally execute some commands.</p>
  
  <pre><code>$commands = @(
  "su - $UNIXUSER;",
  "id"
  )
  
  echo y | plink -ssh $SERVER -l $USER -pw $PWD $commands
  </code></pre>
  
  <p>When I execute the code above using PowerShell I get a message saying he was able to change the user, but when I execute the command <code>id</code> he returns the id I logged in in the first place, not the <code>su</code> user.</p>
  
  <p>How can I execute commands using Plink within a <code>su</code> user?</p>