Await user input before falling back to CLI

This commit is contained in:
Raphire
2026-02-01 13:12:32 +01:00
parent b4d4f5630d
commit 98fce954f0

View File

@@ -2989,6 +2989,12 @@ if ((-not $script:Params.Count) -or $RunDefaults -or $RunDefaultsLite -or $RunSa
}
catch {
Write-Warning "Unable to load WPF GUI (not supported in this environment), falling back to CLI mode"
if (-not $Silent) {
Write-Host ""
Write-Host "Press any key to continue..."
$null = [System.Console]::ReadKey()
}
$Mode = ShowScriptMenuOptions
}
}