PowerShell

Cmdlet Naming

Introduction#

CmdLets should be named using a <verb>-<noun> naming scheme in order to improve discoverability.

Verbs

Verbs used to name CmdLets should be named from verbs from the list supplied be Get-Verb

Further details on how to use verbs can be found at Approved Verbs for Windows PowerShell

Nouns

Nouns should always be singular.

Be consistent with the nouns. For instance Find-Package needs a provider the noun is PackageProvider not ProviderPackage.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow