Hello Team,
I believe a behavior of pr command might be a bug. If you use -h option for header and in the string you put exclamation (!) all is good, but if you put more than 1 exclamations in raw command failed. You can see results in the attached pictures.
information for my system: