title: Run JavaScript in a Windows Command Line
body: <p>This is something I only found out about today is that JavaScript can be run through a windows command line.</p>
  
  <p>So I found out that to run a javascript file in windows cmd.exe you use cscript.</p>
  
  <p>My hworld.js file only has one line</p>
  
  <pre><code>print('hello world');
  </code></pre>
  
  <p>I try to run this through the command line with</p>
  
  <pre><code>cscript /Prog/hworld.js
  </code></pre>
  
  <p>It didn't run with the error</p>
  
  <pre><code>Microsoft JScript runtime error: Object Expected
  </code></pre>
  
  <p>Are there steps i need to follow before simply cscript running a one line javascript file.</p>
  
  <p>I was under the impression that JavaScript will just run out the box.</p>
  
  <p>PS. Java is the development environment set up for the computer I am trying this on, installed and functional</p>