In other cases where you find yourself needing to display a character that's normally reserved for another purpose (the pipe | is a good example) you can use $chr() to display it:

//echo -s Ascii: $asc($?=Character?)

if you put a pipe in you should get 124. In your script you can use: $chr(124) and it will display a pipe instead of breaking up commands:

//echo thing1 | thing2
//echo thing1 $chr(124) thing2