Search notes:

PowerShell cmdLet Write-Progress

The PowerShell cmdlet write-progress updates a progress bar which might be used to indicate how far a certain task already is.
for ($percent = 0; $percent -le 100; $percent += 5) {
  start-sleep -milliSeconds 500
  write-progress -activity 'Doing nothing' -status "$percent%:" -percentComplete $percent
}
Github repository about-PowerShell, path: /cmdlets/progress/write.ps1

See also

$host.ui.writeProgress(…)
The cmdLet verb write
The $progressPreference preference variable
Powershell command noun: progress

Index