Add list-verbs.ps1

This commit is contained in:
Markus Fleschutz 2023-01-09 13:55:16 +01:00
parent ccdd85c14d
commit afb0e2b9e4

25
Scripts/list-verbs.ps1 Normal file
View File

@ -0,0 +1,25 @@
<#
.SYNOPSIS
Lists verbs
.DESCRIPTION
This PowerShell script lists all allowed verbs.
.EXAMPLE
PS> ./list-verbs
Verb Group
---- -----
Add Common
...
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
try {
Get-Verb | Sort-Object -Property Verb
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}