Chapter 5. Adding to the MSH Toolkit
We covered a lot of new ground in the preceding chapters that focused on exploration in interactive mode. In the examples that follow in this chapter, we’ll step back and look at some of the plumbing of MSH that makes it all possible. We’ll cover some of the generic cmdlets in more detail, discuss how data can be persisted to and retrieved from a filesystem, and take a deeper look at exactly what a pipeline object is and how the .NET Framework Class Library can provide an extra dimension of functionality.
Extend the Toolkit with Generic Cmdlets
There are several cmdlets that keep coming up again and again: where-object
, sort-object
, select-object
, format-table
, and a handful of others. These cmdlets are simple in their design and offer almost limitless possibilities for reuse in all kinds of situations. There are several more processing cmdlets that we’ll discuss in this section that are also generic in nature yet draw strength from their simplicity.
Get Monad (AKA PowerShell) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.