In Linux, How to execute shell command from javascript

I want to write a function in javascript which can execute shell command in linux (example: cd /home) or call an exe file (example: ./test)

I have already searched some solution such as using node.js api but I don’t want to setup anything more.

How can I achieve this? Thank you.