Chapter 24. Making script output prettier

Throughout this book, we’ve tried to keep you focused on building tools that do one thing, and one thing only. Tools don’t care where their input comes from, as long as that input can be fed to a parameter. Tools don’t care where their output goes or what it will be used for. That means tools don’t try to create nicely formatted output—after all, you can use one of the native Format- commands, or even Select-Object, to pretty up the output if that’s what you need. Perhaps you want to make the output easier to read or more boss-friendly. In this chapter, however, we’re going to introduce you to two approaches for prettying up output that go beyond what the Format- commands can do.

24.1. Our starting ...

Get Learn PowerShell Scripting in a Month of Lunches now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.