title: How to prevent batch file (.bat) from closing terminal when running commands?
body: <p>On a Windows 7 machine if I run a PHPUnit Selenium command like this manually in the terminal:</p>
  
  <pre><code>phpunit --verbose --log-junit _selenium_tests\results\home.xml _selenium_tests\frontend\home.php
  </code></pre>
  
  <p>It spawns a browser and runs the test just fine. Then it outputs the following on the screen:</p>
  
  <pre><code>Time: 10 seconds, Memory: 3.50Mb
  OK (1 test, 3 assertions)
  </code></pre>
  
  <p>And the terminal stays open.</p>
  
  <p>Now if I copy and paste the exact command in an empty file and save it as <code>test.bat</code> and click it, it also runs the test. I can see the browser open and all tests run. Only problem is it closes the terminal prompt right after. So I can't see the above output.</p>
  
  <p>An even bigger problem is, since it closes the terminal if I add more commands for other tests after that initial one they don't run.</p>
  
  <p>I tried adding:</p>
  
  <pre><code>pause
  </code></pre>
  
  <p>at the end of the bat file but no luck, it still closes. Any idea how to prevent this and be able to run one command after another without the terminal ever closing?</p>