To reuse existing functions in PowerShell, you can wrap the existing function in a new function. This approach makes the existing function relatively more reusable, but it doesn't significantly improve its functionality unless further modifications are made. Here's an example of how to wrap an existing function:
function New-WrappedFunction {
[CmdletBinding()]
param()
# Call the existing function
ExistingFunction
}
In this example, New-WrappedFunction is a new function that calls the existing function ExistingFunction.
Here's an example of how to use the wrapped function:
New-WrappedFunction
Best Practices for Reusing Existing Functions (Cmdlets) in PowerShell
Use Parameter Sets
Parameter sets allow you to provide multiple ways to call the same function. This makes the function more flexible and easier to use.
function New-WrappedFunction {
[CmdletBinding(ParameterSetName='Default')]
param()
# Code for default parameter set
[CmdletBinding(ParameterSetName='WithParameters')]
param(
[Parameter(Mandatory=$true)]
[string]$Parameter1,
[Parameter(Mandatory=$true)]
[string]$Parameter2
)
# Code for parameter set with parameters
Process {
# Process the input objects
}
}
In this example, New-WrappedFunction has two parameter sets: Default and WithParameters. The default parameter set doesn't require any parameters, while the WithParameters set requires Parameter1 and Parameter2.
Use Advanced Functions
Advanced functions provide more functionality compared to regular functions, such as support for input objects, automatic help documentation, and the ability to use [CmdletBinding()].
function New-WrappedFunction {
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)]
[string]$Parameter1,
[Parameter(Mandatory=$true)]
[string]$Parameter2
)
Begin {
# Initialize any variables or objects
}
Process {
# Process the input objects
}
End {
# Clean up any resources
}
}
In this example, New-WrappedFunction is an advanced function with a Begin, Process, and End block.
Use Pipeline Input
By default, advanced functions can accept pipeline input. This makes it easy to pass input objects to the function from the pipeline.
function New-WrappedFunction {
[CmdletBinding()]
param()
Process {
# Process the input objects
}
}
# Pass input objects to the function from the pipeline
1..10 | New-WrappedFunction
In this example, New-WrappedFunction receives input objects from the pipeline.
Use Custom Help Documentation
Custom help documentation makes it easier for users to understand how to use your function.
function New-WrappedFunction {
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)]
[string]$Parameter1,
[Parameter(Mandatory=$true)]
[string]$Parameter2
)
# Custom help documentation
[CmdletBinding(HelpName='NewWrappedFunction')]
help New-WrappedFunction -Description 'This function wraps an existing function.' -Parameter Parameter1 'This is the description for Parameter1.' -Parameter Parameter2 'This is the description for Parameter2.'
Process {
# Process the input objects
}
}
In this example, New-WrappedFunction has custom help documentation.
References
- Microsoft Docs - About Functions: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions_workflow?view=powershell-7.1
- Microsoft Docs - About Advanced Functions: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_advanced_functions?view=powershell-7.1
- Microsoft Docs - About Parameters: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parameters?view=powershell-7.1
- Microsoft Docs - About Parameter Sets: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parameter_sets?view=powershell-7.1
- Microsoft Docs - About Help: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_help_files?view=powershell-7.1
- Petri IT Knowledgebase - Advanced Functions in PowerShell: https://petri.com/advanced-functions-powershell/
- TechNet - How to Write a PowerShell Function: https://technet.microsoft.com/en-us/library/ee156849.aspx
- TechNet - PowerShell Cmdlet Binding: https://technet.microsoft.com/en-us/library/ee176949.aspx
- TechNet - Writing Help for PowerShell Cmdlets: https://technet.microsoft.com/en-us/library/ee176948.aspx
- TechNet - Parameter Sets in PowerShell: https://technet.microsoft.com/en-us/library/ee176950.aspx
- TechNet - How to Write Parameter Sets in PowerShell: https://technet.microsoft.com/en-us/library/ee176951.aspx
- TechNet - How to Write Advanced Functions in PowerShell: https://technet.microsoft.com/en-us/library/ee176952.aspx
- TechNet - How to Write Parameter Sets in PowerShell: https://technet.microsoft.com/en-us/library/ee176951.aspx
- TechNet - How to Write Help for PowerShell Cmdlets: https://technet.microsoft.com/en-us/library/ee176948.aspx
- PowerShell.org - Advanced Functions: https://powershell.org/blog/powershell-101/advanced-functions/
- PowerShell.org - Writing Help for PowerShell Cmdlets: https://powershell.org/blog/powershell-101/writing-help-for-powershell-cmdlets/
- PowerShell.org - Parameter Sets: https://powershell.org/blog/powershell-101/parameter-sets/
- PowerShell.org - How to Write Parameter Sets in PowerShell: https://powershell.org/blog/powershell-101/how-to-write-parameter-sets-in-powershell/
- PowerShell.org - How to Write Advanced Functions in PowerShell: https://powershell.org/blog/powershell-101/how-to-write-advanced-functions-in-powershell/
- PowerShell.org - How to Write Help for PowerShell Cmdlets: https://powershell.org/blog/powershell-101/how-to-write-help-for-powershell-cmdlets/
- Petri IT Knowledgebase - How to Write Help for PowerShell Cmdlets: https://petri.com/how-to-write-help-for-powershell-cmdlets/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/
- Petri IT Knowledgebase - How to Write Parameter Sets in PowerShell: https://petri.com/how-to-write-parameter-sets-in-powershell/
- Petri IT Knowledgebase - How to Write Advanced Functions in PowerShell: https://petri.com/how-to-write-advanced-functions-in-powershell/