title: preserve color when executing child_process.spawn
body: <p>I'm trying to execute a windows command through cmd.exe in node.js using child_process.spawn. It executes correctly, but only displays in default text color. How do I preserver the color. Is it possible?</p>
  
  <pre><code>var spawn = require('child_process').spawn,
      cmd    = spawn('cmd', ['/s', '/c', 'C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild c:\\test.sln']);
  
  cmd.stdout.on('data', function(data){
      process.stdout.write(data);
  });
  
  cmd.stderr.on('data', function(data){
      process.stderr.write(data);
  });
  
  cmd.on('exit', function(code){
      console.log(code);
  });
  </code></pre>
  
  <p>When executing via node, the color is not preserved.
  <img src="https://i.stack.imgur.com/14mTV.png" alt="Executing via node.js"></p>
  
  <p>When executing via cmd.exe directly, the color is present. (This is the expected behavior). How do I get this behvior when executing via node.
  <img src="https://i.stack.imgur.com/TNabq.png" alt="When executing through cmd.exe"></p>