title: Windows cmd - Interact with user input prompt [npm] using oneliner
body: <p>I am trying to pass in an input as one line to an user-input prompt, but am having difficulty working out how to do it correctly.</p>
  
  <p>Specifically I am trying to login to npm using <code>npm adduser</code> (<code>npm login</code> is its alias)</p>
  
  <p>When it's a singular value it works but this only gets me so far: <code>echo exampleuser| npm adduser</code>
  <code>
  Username: exampleuser
  Password:
  Password: npm ERR! cb() never called!
  </code></p>
  
  <p>But unfortunately when I try to add multiple commands together it goes awry. Eg:<br>
  <code>echo 'exampleuser examplepassword ex@email.com'| npm adduser</code> or<br>
  <code>echo 'exampleuser\r\nexamplepassword\r\nex@email.com'| npm adduser</code> or<br>
  <code>echo 'exampleuser&amp;&amp; echo examplepassword&amp;&amp; echo ex@email.com'| npm adduser</code>, etc...</p>
  
  <p>Gets back errors along the lines of
  <code>
  Username: 'exampleuser examplepassword'
  npm WARN Name must be lowercase
  Username:
  Username: npm ERR! cb() never called!
  </code></p>
  
  <p>Any suggestions would be greatly appreciated.</p>