Skip to content

Instantly share code, notes, and snippets.

Invoke-RestMethod "https://get.activated.win" | Invoke-Expression
function Install-Package {
param($PackageId, $Override, $Scope)
$args = "install -h --accept-package-agreements --accept-source-agreements --force -e --id $PackageId"
if ($Override) { $args += " --override `"$Override`"" }
if ($Scope) { $args += " --scope $Scope" }
Invoke-Expression "winget $args"
}