This scripts uses the nodejs commander module to get todo tasks as arguments from the user. The first parameter the node executable The second parameter is the script or file name The third parameter is the command that will run the script The fourth parameter is the name of the to be created file where your arguments/tasks will be stored. The other parameters can be more or more of your arguments as you wish.
Example:
node commander.js append read cook wash-dishes do-laundary