title: Executing .exe file using node runs only once in protractor
body: <p>I write some tests using jasmine and protractor i want in the @beforeeach to execute .exe file using require('child_process') and then @aftereach i will restart the browser.
  The problem is that the .exe file is executed only once with the first spec.
  here is the code in the beforeEach()</p>
  
  <pre><code>beforeEach((done) =&gt; {
      console.log("before each is called");
      var exec = require('child_process').execFile;
  
      browser.get('URL'); 
      console.log("fun() start");
      var child = exec('Test.exe', function(err, data) {
          if (err) {
              console.log(err);
          }
          console.log('executed');
          done();
  
          process.on('exit', function() {
              child.kill();
              console.log("process is killed");
          });
  
      });
  </code></pre>
  
  <p>Then i wrote 2 specs and in the aftereach i restart the browser</p>
  
  <pre><code>afterEach(function() {
          console.log("close the browser");
          browser.restart();
      });
  </code></pre>