title: Suppress console output in PowerShell
body: <p>I have a call to GPG in the following way in a PowerShell script: </p>
  
  <pre><code>$key = &amp; 'gpg' --decrypt "secret.gpg" --quiet --no-verbose &gt; $null
  </code></pre>
  
  <p>I don't want any output from GPG to be seen on the main console when I'm running the script. </p>
  
  <p>Due to my noobness in PowerShell, I don't know how to do this. I searched 
  Stack&nbsp;Overflow and googled for a way to do it, found a lot of ways to do it, but non of it worked.</p>
  
  <p>The "> $null" for example has no effect. I found the <code>--quiet --no-verbose</code> options for GPG to put less output in the console, still it's not completely quiet, and I'm sure there is a way in PowerShell too.</p>