You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reference message: "The cmdlet 'Local:Test-Something' uses an unapproved verb."
Where Advanced Functions are declared with a scope prefix the rule generates a false positive.
For example:
Function Local:Test-Something {...}
Function Script:Test-SomethingElse {...}
etc.. same for Global and Private.
Not trying to justify the syntax or the appropriate use cases for it. The syntax is however supported by PowerShell, and when used to declare the function the rule clearly generates a false positive (noting that without the scope prefix these Verb-Noun combinations pass the rule).