Unfortunately functions you create right in PowerShell rather than in a compiled .Net language seem not to have 'Verb'-Properties. In order to find non approved verbs in this kind of self made modules a simple "pseudo verb" function might do as well:function PseudoVerb{ param ($fn_name) try { $parts = $fn_name -split "-" return $parts[0] } catch { return "[no verb]" } }
Now change the respective line in Example 5 like this:$myVerbs = get-command -modu
↧