PowerShell – Counter Posted onJuly 9, 2020July 15, 2022AuthorMrNetTek $global:counter = 1 $x = 0; while ($x -lt 10) { Write-host "Counter: $counter" $script:counter++ $X++ } exit 0