Chapter 17. Changing your brain when it comes to scripting

Let’s take a quick break from the narrative. In the preceding chapters, we’ve focused a lot on building tools that conform to PowerShell’s native patterns and practices. That’s all well and good, but sometimes you can make a point best hit home by showing its opposite.


This is our special Bonus Double Chapter, meaning it’s likely to take you longer than an hour to make it through the whole thing. Obviously, take as long as you need. Really try to embrace the why of what we’re writing here, and if it all doesn’t make sense, hop on the forums at and ask a question. Honestly, the concepts in this chapter are the most important ones in the book—everything else ...

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

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