Re: How exactly does this execute?
Nothing to do with a JVM. Windows helpfully comes with Windows Scripting Host, which provides an environment for JavaScript to execute in. Quite handy for creating batch files or other automation tasks, but why this is enabled by default in consumer versions of Windows is beyond me.