Powershell: este comando pega mi script, se congela

Powershell: este comando pega mi script, se congela

Estoy intentando obtener una lista de actualizaciones disponibles usando

$UpdateSession = New-Object -ComObject 'Microsoft.Update.Session'
Write-Host "[1]"

$UpdateSession.ClientApplicationID = 'MSDN PowerShell Sample'
Write-Host "[2]"

$UpdateSearcher = $UpdateSession.CreateUpdateSearcher()
Write-Host "[3]" 

$SearchResult = $UpdateSearcher.Search("IsInstalled=0 and IsHidden=0")
Write-Host "[4]"

la ultima instruccion $SearchResult = $UpdateSearcher.Search("IsInstalled=0 and IsHidden=0") se congela, no devuelve nada y no puedo entender por qué.
Producción :

[1]
[2]
[3]
<running...>

Supongo que en realidad está haciendo algo porque no puedo presionar CTRL+C para detenerlo. Tienes que reiniciar Powershell.

(W7 SP1, .NET Framework 4.6.1, Powershell 4.0) ¿

Alguna idea?

Editar:tomó esas líneas delObtener-WindowsUpdates.ps1guion

información relacionada