If you don't have aregistry entry under
Applications as below, then you can use
ftype JSFile=C:\Program Files\nodejs\node.exe "%1"%*
I made use of the notes here, and then got it to work by trial-and-error, resulting in the following Data value:
"C:\Program Files\nodejs\node.exe" "%1"%*
%*value is NOT in quotes, and has no space between it and previous double-quote.
Without this, the parameters either did not get passed along, or came in with an extra space, and were ignored.