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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access