$x = [System.DateTime]::Now Start-Sleep -Milliseconds 1898 if (([System.DateTime]::Now - $x).TotalMilliseconds -lt 1518) { exit }