How to execute shell commands with from Nodejs( Expressjs)

Hi I have nodejs back-end server I'm trying to execute shell commands to my Openwrt shell when server "GET" from from client ( connected to server via OpenWrt router) what I did here

app.get('/', function(req, res){
  exec("[my shell command]", function(error, stdout, stderr) {
   console.log(error || stdout || stderr);

but using this I cannot execute it on my OpenWrt router, what is the method to do so?