To run the application use the following command: #node robot.js To run the application with the file input argument, please use -f XXX where XXX is the path to input commands: #i.e : node robot.js -f test.txt