Checkout this video:
You can also use the “wscript” command instead of “cscript” if you want your script to display graphical dialog boxes and other elements; otherwise, they’ll just appear in the console window.
Secondly, it is advisable to install a good quality code editor such as Visual Studio Code or Sublime Text. These editors will help to make your code more readable and easier to debug.
Thirdly, it is a good idea to use a transpiler such as Babel or TypeScript in order to convert your code into a format that is more compatible with Windows. This will help to improve performance and avoid any potential errors.
If you need more control over how your JS files are executed, or if you want to use a text editor other than Edge’s built-in editor, you can use the Node.js runtime. Node.js is a popular open-source runtime that allows you to execute JS code outside of a web browser. To install Node.js on Windows 10, head over to the official website and download the latest release. Once Node.js is installed, you can launch JS files from the command line by using the “node” command.