title: How to kill a running process on windows from nodejs
body: <p>I want to close chrome application on windows through nodejs.</p>
  
  <p>Here what I did :</p>
  
  <pre><code>var ps = require('ps-node');
  ps.lookup({ pid: 8092 }, function(err, resultList ) {
  if (err) {
      throw new Error( err );
  }
  
  var process = resultList[ 0 ];
  
  if( process ){
  
      console.log( 'PID: %s, COMMAND: %s, ARGUMENTS: %s', process.pid, process.command, process.arguments );
  //process.kill(8092)
  }
  else {
      console.log( 'No such process found!' );
  }
  </code></pre>
  
  <p>});</p>
  
  <p>I am not able to kill the process. Can anyone suggest a way to do it.
  I tried <strong>process.exit()</strong> <strong>process.kill</strong> <strong>process.abort</strong>, but nothing worked for me. It would be great if you help me out.</p>