On Unix you can do pretty much whatever you want as long as "whatever I want" can be represented by a string of text. In PS you get to work with objects. PS is more like a Python shell than bash.
If you want, your PS commandlets can return strings as well, so it's not like every part of your pipeline has to be in PS either.
If you want, your PS commandlets can return strings as well, so it's not like every part of your pipeline has to be in PS either.