title: Pipelining between two SEPARATE Powershell processes
body: <p>Let's say I have two PowerShell programs running: <code>Producer.ps1</code> and <code>Consumer.ps1</code>.</p>
  
  <p>Is there any way to establish a client-server relationship between the two <code>.ps1</code> files I have?</p>
  
  <p>Specifically, <code>Producer.ps1</code> outputs a <code>PSObject</code> containing login info.  Is there any way I can establish a <strong>listener and named pipe</strong> between the two objects to pass this <code>PSObject</code> from <code>Producer.ps1</code> directly into <code>Consumer.ps1</code>?</p>
  
  <hr>
  
  <p>(<strong>Note</strong>: the two files cannot be combined, because they each need to run as different Windows users.  I know one possible solution for communicating is to write the <code>PSObject</code> to a text/xml file, then have the client read and erase the file, but I'd rather not do this since it exposes the credentials. I'm open to whatever suggestions you have)</p>