What I'm trying to do is open a new command prompt through Node and run a Javascript file.
For example, I would
node file1.js
And that would open a new console instance, which would instantly run
node file2.js
I have the basic outline and can open a new instance, just not pass any commands/arguments
var child_process = require('child_process');
child_process.execSync('start cmd.exe');
I need help passing command line params, cant find out how though.