If you are trying to execute a JavaScript file in Windows using the cscript interpreter, try adding //E:jscript to your call. for example:
cscript //E:jscript foo.js
If you are trying to execute a JavaScript file in Windows using the cscript interpreter, try adding //E:jscript to your call. for example:
cscript //E:jscript foo.js