PowerShell/Scripts/list-verbs.ps1

26 lines
456 B
PowerShell
Raw Normal View History

2023-01-09 13:55:16 +01:00
<#
.SYNOPSIS
Lists verbs
.DESCRIPTION
This PowerShell script lists all allowed verbs.
.EXAMPLE
2023-08-06 21:35:36 +02:00
PS> ./list-verbs.ps1
2023-01-09 13:55:16 +01:00
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
2023-08-06 21:35:36 +02:00
}