To understand this create a sample Node.js script and execute script with some arguments. For example, assuming the following script for process-args.js:

Launching the Node.js process as: Would generate the output: To access the single argument, simply use process.argv[INDEX] option. Change index number as per your need.

OR