public static Task <bool> LaunchApplicationFromAUMIDAsync(string AppUserModelId) { return(ExecuteOnSTAThreadAsync(() => { try { if (new Shell32.ApplicationActivationManager() is Shell32.IApplicationActivationManager Manager) { Manager.ActivateApplication(AppUserModelId, null, Shell32.ACTIVATEOPTIONS.AO_NONE, out _); return true; } else { return false; } } catch { return false; } })); }