Basically, there are two things that could happen if you run a .js file. It can either be run with Windows Script Host, or with Node.js.
In the .js file itself, I need to know what is being used to run the script, and then run different code depending on that.
How do I do that, if that is even possible?