title: How to complete the RUNAS command in one line
body: <p>This Stack&nbsp;Overflow question suggests a command which looks as if it should work, but it doesn't (that answer is deleted now, though):</p>
  
  <p><em><a href="https://stackoverflow.com/a/12456756/1333582">Single line command for Run as a different user on Window 7 that contains a password also</a></em></p>
  
  <p>The command would be:</p>
  
  <pre><code>echo PaSsWoRd | runas /user:Administrator cmd
  </code></pre>
  
  <p>However it says:</p>
  
  <blockquote>
    <p>unknown user name or bad password.</p>
  </blockquote>
  
  <p>The details are definitely correct though. For example, if I was to run:</p>
  
  <pre><code>runas /user:Administrator
  </code></pre>
  
  <p>...and on the next line, if I typed in <code>PaSsWoRd</code>, it would work no problem.</p>