Do need to load a plug-in?
Please post back if you find a better answer.
I'm thinking that ChatGPT is confusing ".js" with ".jsl" here. What it's describing would work with JSL code, but not Javascript.
In addition to Craige's response, you might be able to use the JSL command Run Program() in conjunction with node.js to get something to work.
I see, can only use other methods to run JS.
I ended up using AutoHotkey to run JS and copy the result to the paste board.
JSL gets the result from the paste board.
Thanks Experts!