Sunday, 5 January 2020

Show Progress bar



  For ($i=0;$i -lt 10; $i++)
  {

  $percentComplete = ($i / 10) * 100

  Write-Progress -Activity 'Running..' -Status "Did thing $i  times" -PercentComplete $percentComplete

  sleep 1
   }



No comments:

Post a Comment