using System.Management.Automation; namespace HyperBooru.PowerShell; [Alias("dchbs")] [Cmdlet(VerbsCommunications.Disconnect, "HyperBooruSession")] public class DisconnectSessionCmdlet : PSCmdlet { protected override void BeginProcessing() => SessionCmdlet.GlobalSession = null; }