title: Write-progress during Start-process -Wait
body: <p>I'm trying to create an installation script and display a progress bar during the install.</p>
  
  <pre><code>$localfolder= (Get-Location).path
  start-process -FilePath "$localfolder\Installer.exe" -ArgumentList "/silent /accepteula" -Wait
  </code></pre>
  
  <p>and as progress bar I want to add:</p>
  
  <pre><code>for($i = 0; $i -le 100; $i++)
  {
  Write-Progress -Activity "Installer" -PercentComplete $i -Status "Installing";
  Sleep -Milliseconds 100;
  }    
  </code></pre>
  
  <p>But I can't find the way to run the progress bar while the installer is running.</p>
  
  <p>If someone has an idea...</p>