The core of this problem will generate stubborn results. This creates a riddle, as you are looking for something specific that the current answers could not answer about. I understand that you are looking for a solution that logically matches your function, being in the standard list of verbs, which is amazing. To continue with an earlier comment, I did to try to indicate a case for all approved verbs that may be appropriate for your situation. I will refer to the list of approved verbs, which is often related to your question, and will use “AVL” for brevity in the future.
- Group . Comments on AVL relate to using this instead of Arrange. Arranging a synonym for sorting would be nice. Following recommendations, we must use the Group
- Install . This is a synonym for sorting. However, in AVL, it is associated with Write, Reset, Assign, or Configure, which are not related to your cmdlet. However, it is on the list and can fit if you are ready to give up the discomfort that it creates with existing PowerShell cmdlets.
- I really don't have number 3.
- Update . This is a weak case, but AVL refers to its use as a way to maintain [command status] [and] accuracy.
- Order / Organization . Not in AVL, but I believe that they are very suitable and do not conflict with existing verbs.
Ultimately, AVL will be damned and do whatever you want. Sort very suitable for what you are trying to do. You can also use -DisableNameChecking when importing your module. In the end, this is just a warning. The briatist answer is also good in my opinion.
And I think my English is better than him.
Comment Bonus
Not that you asked him, but when you said that we need to enable name verification, I thought about it. Just for fun!
$reservedVerbs = "ForEach","Format","Group","Sort","Tee" $approvedVerbList = (Get-Verb).Verb Get-Command -Module Microsoft.WSMan.Management | ForEach-Object{ If ($approvedVerbList -notcontains ($_.Name -split "-")[0]){ Write-Warning "$($_.Name) does not use an approved verb." } If ($reservedVerbs -contains ($_.Name -split "-")[0]){ Write-Warning "$($_.Name) is using a reserved verb." } }
source share