title: Execute bat file from same folder
body: <p>I have a Bat file with </p>
  
  <pre class="lang-batch prettyprint-override"><code>"C:\Program Files (x86)\Jenkins\jre\bin/java" -jar "C:\Program Files (x86)\Jenkins/war/web-inf/jenkins-cli.jar" -s "http://localhost:8080" create-job "buildjob" &lt; "config.xml"
  "C:\Program Files (x86)\Jenkins\jre\bin/java" -jar "C:\Program Files (x86)\Jenkins/war/web-inf/jenkins-cli.jar" -s "http://localhost:8080" safe-restart
  "C:\Program Files (x86)\Jenkins\jre\bin/java" -jar "C:\Program Files (x86)\Jenkins/war/web-inf/jenkins-cli.jar" -s "http://localhost:8080" build buildjob -p "Path=/" -w -s
  </code></pre>
  
  <p>I couldn't get this running directly in PowerShell, so I put it into a bat file in the same folder as the script and added</p>
  
  <pre class="lang-psh prettyprint-override"><code>cmd.exe /c 'ConfigureJenkinsJob.bat'
  </code></pre>
  
  <p>But that gives an error that the system couldn't find the specified file.</p>