tweak msg to be easier to read
execute cmd with the quoted @ substitution rules
optional json format, -j