$u="http://d.tvdark.eu/play/live.php?mac=00:1A:79:4C:1E:2F&stream=184023&extension=ts&play_token=KHILX7eoTH";
$h=[uri]$u;
Write-Host "=== TRACEROUTE zu $($h.Host) ===" -ForegroundColor Cyan;
Test-NetConnection -ComputerName $h.Host -TraceRoute | Out-String | Write-Host;
Write-Host "`n=== HTTP-PING ===" -ForegroundColor Cyan;
for($i=1;$i -le 10;$i++){
$o=& "$env:SystemRoot\System32\curl.exe" -o NUL -s -w "%{http_code} %{time_total}\n" $u;
if($o -match "(\d{3}) ([0-9.]+)"){
$c=[int]$matches[1];
$t=[double]$matches[2];
$col=if($c-ne 200){"Red"}elseif($t-gt 0.5){"Yellow"}else{"Green"};
Write-Host ("{0,3}: {1,3} {2,6:N3} s" -f $i,$c,$t) -ForegroundColor $col
}else{
Write-Host ("{0,3}: Fehler" -f $i) -ForegroundColor Red
};
Start-Sleep 1
}