title: Calling Groovy script from PowerShell and have access to Jenkins internals
body: <p>I have a build system that runs off of PowerShell scripts.</p>
  
  <p>I want these scripts to be able to do things like change the <code>description</code> and <code>keepLog</code> settings of the current build.</p>
  
  <p>The only way I currently know of setting those is with the groovy plugin and the <em>Execute system Groovy script</em>.</p>
  
  <p>Is it possible for a PowerShell script, called from Jenkins, to call a Groovy script that has access to the Jenkins internal objects?</p>
  
  <p>If not, is there any other way to access the internal Jenkins objects from a PowerShell script?</p>
  
  <p>I am currently calling the PowerShell script from an <em>Execute Windows Batch Command</em> build step.</p>