With ssh I can do "command1 && command2" which will run correctly. However, I need to be able to use pmrun the same way.
Symbols like && can be used in expressions to produce new values. It can work in a structure like this.
if ((defined myuser) &&
(myuser == “root”))