title: Add a timeout between two batch command lines in Jenkins
body: <p>This is the code I want to launch with Jenkins :</p>
  
  <pre><code>start cmd.exe /k "node "C:\Program Files\Appium\node_modules\appium\bin\appium.js" -a 127.0.0.1 -p 4723"
  ping 127.0.0.1 -n 30 &gt; nul
  C:\path\NUnit-2.6.4\NUnit-2.6.4\bin\nunit-console.exe C:\path\NUnit-2.6.4\NUnit-2.6.4\bin\apk\UnitTestProject1.dll
  </code></pre>
  
  <p>This is the error I get every time I try to put a pause:</p>
  
  <pre><code>"ERROR: Input redirection is not supported, exiting the process immediately."
  </code></pre>
  
  <p>Same error with <code>timeout /T 60</code> and <code>sleep 60</code></p>
  
  <p>According to <a href="https://stackoverflow.com/questions/1672338/how-to-sleep-for-5-seconds-in-windowss-command-prompt-or-dos#comment37874038_1672375">this post</a> , timeout does not work in non-interactive scripts.</p>
  
  <p>How can I add a pause in my situation ?</p>
  
  <p>Edit for Will Ryan :</p>
  
  <p>I try this :</p>
  
  <p><a href="https://i.stack.imgur.com/gcYHk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gcYHk.png" alt="enter image description here"></a></p>
  
  <p>The build worked, but the test duration is only 0.5 seconds, the pause doesn't do anything </p>
  
  <p><a href="https://i.stack.imgur.com/M6dNe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/M6dNe.png" alt="enter image description here"></a></p>
  
  <p>The console output is :</p>
  
  <pre><code>C:\Program Files\Jenkins\jobs\ZFAIL\workspace&gt;echo "--" 
  "--"
  
  C:\Program Files\Jenkins\jobs\ZFAIL\workspace&gt;PING 1.1.1.1 -n 1 -w 30000  1&gt;NUL 
  
  C:\Program Files\Jenkins\jobs\ZFAIL\workspace&gt;echo "++" 
  "++"
  
  C:\Program Files\Jenkins\jobs\ZFAIL\workspace&gt;exit 0 
  Finished: SUCCESS
  </code></pre>