title: Redirection to 'NUL' failed: FileStream will not open Win32 devices
body: <p>I am trying to remove some verbosity from a <code>choco install</code> command within AppVeyor. Here is what I been trying (as suggested <a href="https://stackoverflow.com/a/4507627/136285">here</a>):</p>
  
  <pre><code>if (Test-Path "C:/ProgramData/chocolatey/bin/swig.exe") {
      echo "using swig from cache"
  } else {
      choco install swig &gt; NUL
  }
  </code></pre>
  
  <p>However it fails with:</p>
  
  <pre class="lang-none prettyprint-override"><code>Redirection to 'NUL' failed: FileStream will not open Win32 devices such as
  disk partitions and tape drives. Avoid use of "\\.\" in the path.
  At line:4 char:5
  +     choco install swig &gt; NUL
  +     ~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : RedirectionFailed
  
  Command executed with exception: Redirection to 'NUL' failed: FileStream will not open Win32 devices such as disk partitions and tape drives. Avoid use of "\\.\" in the path.
  </code></pre>
  
  <p>So my question is there a way to suppress the verbosity of a <code>choco install</code> command within PowerShell on AppVeyor?</p>