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