When posting code, click on the Source button in the editor, then enclose your code in < code > and < / code > HTML tags, omitting the spaces between the angle brackets as I did here to bypass the parser. Sorry for the additional step required. This is the best we can do for now. Hopefully we can improve this in the future.
ps | foreach-object {
# do something
}