In node.js you can pass the argument
$ node -i -e '.load ./someScript.js'
SyntaxError: Unexpected token .
at Object.exports.runInThisContext (vm.js:53:16)
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:410:26)
at nextTickCallbackWith0Args (node.js:419:9)
at process._tickCallback (node.js:348:13)
> .load ./someScript.js
Why can't I eval a .load to start an interactive script in node.js?
This question asks how to go interactive after running a script, which doesn't answer the "why" part (that's why I've posted the above), but its answers may give you some options for the somewhat-implied "...and what do I do instead?" part. :-)