Here is an example using a Linux Shell Script. You will need to be sure that Node.js is installed on your system first.
//This is my first script.
Now save the file as test.js and run the following commands to test it out:
chmod u+x test.js