For PowerShell to recognize a cmdlet, its .NET class must be decorated with the Cmdlet attribute.
The attribute specifies these features.
Identifies the cmdlet.
Used when multiple parameter sets exist and the runtime lacks enough information to pick one.
ShouldProcessThat method shows a confirmation message before the cmdlet changes the system.
Default to Medium in most cases.
The attribute is the contract the runtime reads to register, bind, and gate the cmdlet.