title: Running a function in PowerShell
body: <p>I am new to PS and have been given a script to run.  The first thing I do is type in <code>c:\powershell\ir.ps1</code>.  This seems to work.  Then after defining my clients directory I am supposed to be able to just type in functions such as <code>ir-n</code>.  This worked at the person's desk that showed me how to do it, but I get the following error:</p>
  
  <pre><code>The term 'ir-n' 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.
  At line:1 char:5
  + ir-n &lt;&lt;&lt;&lt;
    + CategoryInfo          : ObjectNotFound: (ir-n:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  
  <p>Is there something simple I can do to get it to run?  I see the function in the <code>ir.ps1</code> file so I know it is there.</p>