@trmst the way I’m calling the turn off monitor cmd in my voice module you can execute your shell script.
https://github.com/fewieden/MMM-voice/blob/master/node_helper.js#L348
official documentation https://nodejs.org/dist/latest-v8.x/docs/api/child_process.html#child_process_child_process_exec_command_options_callback