Chapter 7. Advanced functions, part 1

PowerShell has a number of types of functions: basic functions that just return a value, filtering functions that work in the pipeline, and so on. We’re going to jump straight to the top of the food chain and build an advanced function—what some people call a script cmdlet. Frankly, we think this is where you should be aiming for any tool you build—even if it’s just a tool for your own personal use. Advanced functions do a lot of heavy lifting for you, giving you a great deal of functionality essentially for free. You can end up with the equivalent of a cmdlet without having to program in Visual Studio.

If you have any programming background, this will require you to reach into your mind, locate whatever ...

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.