Just add the two lines, one above, one below, the shell line.

Add this line: ? $printercmd
Leave as is : shell $printercmd
Add this line: ? @serror