Tell us about yourself!
You would have to wright a function that does that.
"How do you run node.js scripts without the use of the web interface?"You have to run it via terminal `node scriptToRun.js`
You cannot access localhots via another computer. localhost always* refer the curent computer. If you want to access one computer via another, you'll have to find it's IP address and use it instead of localhost. If you localhost computer IP is 192.168.1.100, then on the other computer you should use http://192.168.1.100 instead of http://localhost.*Not always, but if it's not the case, your either a ninja in networking, or should call tech support.
On your computer. Node.js execute the code.