install-windows-terminal
Installs Windows Terminal
#requires -version 5.1
try {
"Installing Windows Terminal, please wait..."
& winget install --id Microsoft.WindowsTerminal --accept-package-agreements --accept-source-agreements
if ($lastExitCode -ne 0) { throw "'winget install' failed" }
"Windows Terminal installed successfully."
exit 0
} catch {
throw
}This script has no configurable parameters.