1 2 3 4 5 6 7 8 9 10
using System.Management.Automation; namespace HyperBooru.PowerShell; [Alias("dchbs")] [Cmdlet(VerbsCommunications.Disconnect, "HyperBooruSession")] public class DisconnectSessionCmdlet : PSCmdlet { protected override void BeginProcessing() => SessionCmdlet.GlobalSession = null; }