title: How to Write-Verbose from Invoke-Command?
body: <p>In powershell</p>
  
  <p><code>Write-Verbose</code> and the <code>-Verbose</code> flag are used to provide verbose information when commands are run in verbose mode. I am running some scripts remotely and would like to capture the verbose output output. However, <code>Invoke-Command</code> seems to not capture the verbose channel.</p>
  
  <pre><code>PS:&gt; Invoke-Command -ComputerName MY-COMPUTERNAME -Verbose { Write-Verbose "blah" }
  PS:&gt;
  </code></pre>
  
  <p>How do I capture verbose output when running remote scripts?</p>