At its core, MSH is an
object pipeline. Unix, of course, invented the pipelining
concept. But in Unix-like systems -- including Linux and OS
X -- the data that’s passed from one command to the next is
weakly structured ASCII text. When you’ve got smart,
self-describing objects flowing through that pipeline, it’s
a whole new ball game.
Here’s the drill with
MSH. You start by typing the command get-process. As does
Unix’s ps command, get-process prints a bunch of process
statistics on the console. But under the covers, it emits a
sequence of System.Diagnostics.Process objects.