You can use visudo to tell the system that the node-red user is allowed to use sudo with that command without having to enter a password. Then it will run ok in an exec node. I don't remember the exact syntax you need in the visudo file but no doubt your favourite search engine will find it.
First check the command in a terminal with sudo, does it ask for a password? If not then it will run in an exec node.