28,655 questions
You need to write your script with the .js file extension.
Open a Text editor and copy-paste the following:
// Simple WSH JavaScript example
WScript.Echo("Hello from Windows Script Host!");
Now open Command Prompt as Admin and run:
cscript hello.js