Yes, Shell scripting is possible using JavaScript. This can be done on any system that can run Node.js.
Here is an example using a Linux Shell Script. You will need to be sure that Node.js is installed on your system first.
#!/usr/bin/env node
//This is my first script.
console.log('Hello JavaScript');
Now save the file as test.js and run the following commands to test it out:
chmod u+x test.js
./test.js