while

while (Bedingung) { … }

MS Technet while

Beispiel while
1while ($val -ne 3)
2    {
3    $val++
4    Write-Host $val
5    }