Chapter 4. Simple scripts and functions

Depending on how much you’ve worked with PowerShell already, this chapter may be a bit of a refresher. That’s okay, because we’re going to quickly build on what this chapter covers. In fact, you can think of this chapter as your true starting point in tool-making, now that we’ve reviewed some of the foundation topics. This chapter represents the point where tool users usually stop and where true tool maker begins.

4.1. Start with a command

Whenever we set out to build a tool, we usually start at the shell’s command line. Internally, tools run PowerShell commands in a specific sequence, so we’ll start by getting our command working properly. After all, at the command line we have less complication to ...

Get Learn PowerShell Toolmaking 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.