public override void Execute() { ExitUiaWizardCommand cmdlet = (ExitUiaWizardCommand)Cmdlet; cmdlet.GetWizard(cmdlet.Name).StopImmediately = true; cmdlet.WriteObject(cmdlet, true); } }