refactoring of the Invoke-UiaWizard cmdlet started