title: How to run powershell command using groovy in soapui?
body: <p>I wanted to run the below powershell command as a administrator in the groovy.. </p>
  
  <pre><code>PS C:\Program Files\APP\Bin&gt; .\app.AdminTool.ps1 -url "https://reference1.jdm-inc.com" enqueue orchestration -file  "C:\Program Files\APP\Importer\daily_report.xml"  -properties @{ 'processing_date' = '2017-01-17' }
  </code></pre>
  
  <p>I have used following code to run this.</p>
  
  <pre><code>String workingDir= System.setProperty("user.dir","C:\\Program Files\\APP\\Bin")
  log.info(System.getProperty("user.dir"))
  </code></pre>
  
  <p>I kept the below command in the one variable.</p>
  
  <pre><code>.\app.AdminTool.ps1 -url "https://reference1.jdm-inc.com" enqueue orchestration -file  "C:\Program Files\APP\Importer\daily_report.xml"  -properties @{ 'processing_date' = '2017-01-17' }
  </code></pre>
  
  <p>I have tried the below command to change the path and </p>
  
  <pre><code>def proc = "cmd /C dir".execute().text
  return proc
  </code></pre>
  
  <p>This brings always soapui bin folder path.. How to change the path?</p>