What is the difference between a cmdlet and a function?
To complement Bruce Payette’s helpful answer: Not all functions are created equal in PowerShell: An advanced function is the written-in-PowerShell analog of a (binary) cmdlet (which, as stated, is compiled from a .NET language); decorating a function’s param(…) block with the [CmdletBinding()] attribute or decorating at least one parameter with a [Parameter()] attribute thanks, Ansgar … Read more