Never ending progress bar in PowerShell
$target = 100
$progress = 0
For ($i = 0; $i -lt $target; $i++)
{
$progress = $progress + ((100 - $progress) / 20)
Write-Progress -Activity ‘progress’ -Status (“ {0:N0} %” -f $progress) -PercentComplete $progress
Wait-Event -Timeout 1
}