Passing arguments to node.js-programms while keeping a host window alive

I'm currently trying to do an implementation of the echo-algorithm in Node.js. The algorithm is largely written, however I still have to set up a network in a specific way in order to test the algorithm.

The algorithm expects a node to know a) the way to the next nodes(In my case a/multiple TCP-ports, each node having an unique port as distinction) b) if he is the node that initializes the message. If he is the initial node, his program has to stay alive and print out the output.

So one input would be

node echo -n1 117 -n2 226 -i false

What I need help with is writing one single script, which sets up a static number of nodes in the network(I don't even need this dynamically) and then starts an initializing node, during which the node.js-console for output will be kept alive in some way, in order to show the output. The targeted platform for this is windows. I spend the last 3-4 hours looking at the PowerShell-documentation, which is probably the least helpful place in the world...

Edit1: For clarification: I would need a script that does the following calls and then outputs the result of the last one.

node echo -n1 117 -n2 226 -i false
node echo -n1 250 -n2 226 -n3 500 -i false
//about ten other calls
node echo -n1 235 -n2 227 -n3 500 -i true