for($i=900;$i-ge1;$i--)
{
Write-Progress -Activity "Running Azur AD Sync..." -SecondsRemaining $i -PercentComplete (($i/900)*100)
Start-Sleep -Seconds 1
}
for($i=1;$i-le900;$i++)
{
Write-Progress -Activity "Azur AD Sync" -Status "Running..." -SecondsRemaining $i -PercentComplete (($i/900)*100)
Start-Sleep -Seconds 1
}