title: calling child_process.exec in Node as though it was executed in a specific folder
body: <p>I'm using the following to execute a CLI command in nodeJS</p>
  
  <pre><code>var cp = require('child_process');
  cp.exec('foocommand', callback);
  </code></pre>
  
  <p>However, the foocommand is executing in the current folder node is running from. How can I make it execute as though it is being invoked from a different folder?</p>