title: PowerShell 2.0 and "The term 'Param' is not recognized as the name of a cmdlet, function, script file, or operable program"
body: <p>I am running Windows 7 RTM. PowerShell 2.0 is installed by default. I am using the excellent Windows <a href="https://technet.microsoft.com/en-us/library/dd315244.aspx" rel="noreferrer">PowerShell ISE</a> to edit my scripts. I have the following script:</p>
  
  <pre><code>Param($p)
  Param($d)
  echo $p $d
  </code></pre>
  
  <p>I save the script as SayItAgain.ps1. When I try to run this script from the interactive shell like so:</p>
  
  <pre><code>./SayItAgain -p "Hello"
  </code></pre>
  
  <p>I receive the following error:</p>
  
  <blockquote>
    <p>The term 'Param' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.</p>
  </blockquote>
  
  <pre><code>At C:\users\cius\Code\powershell\SayItAgain.ps1:2 char:6
  + Param &lt;&lt;&lt;&lt; ($destination)
      + CategoryInfo          : ObjectNotFound: (Param:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  
  <p>Is this a known issue or am I simply using it wrong?</p>