https://learn.microsoft.com/ru-ru/dotnet/api/system.management.automation.cmdlet.stopprocessing?view=powershellsdk-7.6.0
Cmdlet.StopProcessing Method (System.Management.Automation) | Microsoft Learn
When overridden in the derived class, interrupts currently running code within the command. It should interrupt BeginProcessing, ProcessRecord, and...
system managementcmdletmethodautomationmicrosoft