title: Run Powershell script from file in Jenkins pipeline
body: <p>I am trying to run a Powershell script from a file in a Jenkins pipeline. </p>
  
  <p>I have read <a href="https://jenkins.io/blog/2017/07/26/powershell-pipeline/" rel="noreferrer">this</a> which shows how to run powershell scripts that are entered into the pipeline, but I can't get a script to run from a file.</p>
  
  <p>I have tried:</p>
  
  <pre><code>powershell returnStatus: true, script: '-File build.ps1'
  </code></pre>
  
  <p>and various combinations but can't figure out how to do this.</p>