Please be aware that EXEC ignore the stderr!
So something like
mkdir /impossible path
Will fail, and show nothing, you must use
mkdir /impossible 2>&1
to properly capture the error message
ELSE
if executed in CLI, will just print on the terminal, if executed on a browser is lost.
I strongly suggested those notes to be added in the main description, and not lost in a comment at the bottom.