When working on PowerShell scripts, there might come a point where a set of instructions is – in small or larger form – a repeat of code that occurs elsewhere in the script. Or it might be code you used in another script or sourced from other locations, and you want to incorporate it into your script to easily call the code.
In the second installment of the Practical PowerShell series, I will discuss how to leverage code’s reusability through functions and scripts.
Among the topics discussed are:
- (Advanced) functions, including custom parameters, common parameters, and typing.
- Adding helpful instructions so your script and functions become documenting.
- Pipeline processing.
