title: Batch script calling a powershell function
body: <p>Is there a way for a batch file to call a powershell function? I've tried </p>
  
  <pre><code>powershell ". .\tes.ps1; Test-Me -Param1 'Hello world' -Param2 12345" 
  </code></pre>
  
  <p>And it works, the function gets called, but so does everything else in the powershell script.
  &nbsp;&nbsp;</p>