title: Cmdlet verbose stream
body: <p>I'm currently writing a C# cmdlet using the PowerShell 5.0 SDK.</p>
  
  <p>I'm trying to pipe the StandardError of a third party executable to the cmdlet output when run from powershell in "real time".</p>
  
  <p>I'm currently using the MedallionShell library to handle running the process. I've tried this with a normal C# win form and used the Command.StandardError.PipeToAsync(Console.OpenStandardOutput()) to get the output to print as the executable generated it to the console in "real time".</p>
  
  <p>I tried to create my own Stream object that calls WriteVerbose but it didn't seem to print anything to the powershell screen (I am passing -Verbose to cmdlet when I run it).</p>
  
  <p>My current flow looks something like this:</p>
  
  <ol>
  <li>Open Powershell ISE</li>
  <li>Load my module (C# dll)</li>
  <li>Call my cmdlet with parameters
  
  <ul>
  <li>Command.Run</li>
  <li>Command.StandardError.PipeToAsync(???)</li>
  <li>Command.Wait (During this step, output should be flowing to powershell window)</li>
  <li>Check Command.Result.Success.</li>
  </ul></li>
  </ol>
  
  <p>Can anyone point me in the right direction on this?</p>