PowerShell Function Parameters: Create Functions with param Blocks

PowerShell function parameters live in a param() block at the top of the function. Each one is a variable with an optional type and default value, and you pass it by name when you call the function: Output: That’s the whole idea. Once a function has parameters, it acts like a small cmdlet, with named … Continue reading PowerShell Function Parameters: Create Functions with param Blocks