title: Execute WIndows bat file in Jenkins
body: <p>I am using Jenkins 2.46.1
  I have a build pipeline plugin installed and I want to execute a Windows batch file in it. The batch file should execute in a new command window and not on jenkins console output. I give the below Jenkins pipeline groovy script:</p>
  
  <pre><code>node {  
      stage 'Init'
      bat '''
          call C:\\myprj\\mybat.bat stop
          EXIT /B 0
      '''
      stage 'Deploy'
      bat '''call C:\\myprj\\mybat.bat'''
  }
  </code></pre>
  
  <p>In the <strong>init</strong> stage, I want  to kill the process if it is already open and in stage <strong>deploy</strong> it should open a new command window and run my batch file. 
  The problem is that the above does not work. The build is succesful but no command window opens up. Pls suggest</p>