Edit

UseApprovedVerbs

Severity Level: Warning

Description

This rule detects cmdlets that use unapproved verbs in their names. All cmdlets must use approved verbs. You can find approved verbs by running the Get-Verb command. If your cmdlet uses an unapproved verb, change it to an approved alternative.

Some unapproved verbs are documented on the approved verbs page with suggested alternatives. Try searching for the verb you're using to find its approved form. For example, Read, Open, or Search should be replaced with Get.

To learn more, see Approved Verbs for PowerShell Commands.

Example

Noncompliant

function Change-Item {
    ...
}

Compliant

function Update-Item {
    ...
}