Execute ESM script on Nodejs Command Line without Compilation
When executing NPM scripts you can use node to run JavaScript files.
If you want step up the type safety of your JavaScript you would switch to using TypeScript, but then you then need something to help compile your TypeScript on demand such as ts-node.