title: How can I execute a node script (#!/usr/bin/env node) on Windows?
body: <p>I want to check version of <code>protractor</code> command on my windows machine. I typed following but it didnt work. why? The path is correct.</p>
  
  <pre><code>./node_modules/protractor/bin/protractor --version
  '.' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>The file is a script - </p>
  
  <pre><code>#!/usr/bin/env node
  
  process.env.NODE_ENV = process.env.NODE_ENV || 'test';
  
  require('../built/cli.js');
  </code></pre>
  
  <p>I could run it using Bash in Windows but is there a way to run it on CMD?</p>