title: Windows expect command equivalent
body: <p>What is the equivalent to linux's expect in windows? Is there a way for a script to send a password when prompted to by a previous command?</p>
  
  <pre><code>runas /user:admin net user username /add
  </code></pre>
  
  <p>Trying <code>echo XYZ | runas ...</code> I got <code>1326 Logon failure: unknown user name or bad password</code>. The command works without the piped echo.</p>