Child_process.exec [deginner need help]

the goal is to display on the Dashboard if a new version of NR is available online :

and if there is one, be able to update always from the Dashboard by clicking on a button which executes the update command or script.
Indeed, we do not see the errors but it avoids connecting to ssh and typing in the terminal to the update command.