refactoring; the Exit-UiaWizard cmdlet