Pass multiple commands to shell_exec

That’s a nice solution, thanks.

My commands are currently in a shell script that is very hard to maintain. I am trying to convert everything to php as much as possible because its much easier for me to manipulate.