. "$PSScriptRoot\_common.ps1" Section 'winget-install-chrome' { Wait-Network -timeoutSec 30 $winget = (Get-Command winget -ErrorAction SilentlyContinue).Source if (-not $winget) { Log 'winget not found (Win10 沒裝 App Installer?)'; return } & $winget install --id Google.Chrome -e --silent --source winget ` --accept-source-agreements --accept-package-agreements --scope machine 2>&1 | ForEach-Object { Log " winget: $_" } }