Chapter 6. The many forms of scripting (and which to use)

We’ve used the words tool and toolmaking a lot so far in this book, and we’re almost ready to start building tools. But we need to acknowledge that the title of this book uses the word scripting, and that wasn’t meant as a bait and switch. You see, for us, scripting is a pretty generic word, and in the PowerShell universe we feel that it can refer to a couple of distinct and valuable things.

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 a self-contained thing; it basically only does one thing: Strike other things. A hammer has no context about its life and no clue ...

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