title: PowerShell "an error occurred while creating the pipeline" #Requires -Version 3.0
body: <p>When attempting to use any of the #Requires commands, for example: </p>
  
  <pre><code>#Requires -Version 3.0 
  </code></pre>
  
  <p>They error with the text:</p>
  
  <blockquote>
    <p>An error occurred while creating the pipeline.
        + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : RuntimeException</p>
  </blockquote>
  
  <p>I've tested this on ISE and the Console with the same results, my versions are below:</p>
  
  <blockquote>
  <pre><code>Name                           Value
  ----                           -----
  PSVersion                      5.1.14409.1012
  PSEdition                      Desktop
  PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
  BuildVersion                   10.0.14409.1012
  CLRVersion                     4.0.30319.42000
  WSManStackVersion              3.0
  PSRemotingProtocolVersion      2.3
  SerializationVersion           1.1.0.1
  </code></pre>
  </blockquote>