title: How to pass build parameters/env variable to powershell pipeline
body: <p>I have a jenkinsfile that defines a pipeline. In there, I declared a step which invokes the powerhell pipeline plugin and I am trying to use the jenkins environment variables as well as a build parameter with no success. See my step definition below:</p>
  
  <pre><code>stage('publish') {
        steps {
              powershell returnStatus: true, script: '$(env:WORKSPACE)\\ci\\scripts\\publish-$(BRANCH).ps1'
        }
      }
  </code></pre>
  
  <p>Any help/insight will be greatly appreciated.</p>