title: Why can't I get the Jenkins Powershell plugin to work?
body: <p>Why can't I get the Jenkins "Powershell plugin" to work?</p>
  
  <p>I can run a powershell script on Jenkins using a "Execute windows batch command" build step with the following command:</p>
  
  <pre><code>powershell -ExecutionPolicy ByPass -File script.ps1
  </code></pre>
  
  <p>But I am unable to run a powershell script with the Jenkins "Powershell plugin" using the "Windows Powershell" build step and this command, because of a Windows Execution policy not set error disallowing it to run:</p>
  
  <pre><code>script.ps1
  </code></pre>
  
  <p>Does anyone know the proper arg to give the Jenkins "Powershell Plugin" for it to succesfully run a script?  Otherwise, I will just use the batch script work-around.</p>