What about these static properties?
[System.Management.Automation.PSCmdlet]::CommonParameters [System.Management.Automation.PSCmdlet]::OptionalCommonParameters
The existing common parameters are a combination of both lists:
CommonParameters : Lists the common parameters added by the PowerShell engine to any cmdlet obtained from the PSCmdlet.
OptionalCommonParameters : lists the general parameters added by the PowerShell engine when the cmdlet defines additional features (SupportsShouldProcess, SupportsTransactions)
i.e. All of them can exist, but optional ones exist only if the cmdlet supports them. See Console Class for more information.
source share