6 The many forms of scripting (and which to choose)

You probably think you’re the victim of bait-and-switch tactics by Manning. We use words such as tool and toolmaking but haven’t talked much about scripting. After all, the title of this book is Learn PowerShell Scripting in a Month of Lunches. But what if I told you that scripting equals toolmaking in this instance? Scripting is a pretty generic word, and in the PowerShell universe, we feel that it can refer to a couple of specific and valuable things that we’ll go over in this chapter.

6.1 Tools vs. controllers

Think about a hammer. A hammer is a tool, and it’s probably one you’ve at least seen before, even if you’ve never wielded one. A hammer is self-contained; it’s main purpose is to strike ...

Get Learn PowerShell Scripting in a Month of Lunches, Second Edition 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.