Copy this and paste it into PowerShell:
$l=New-Object Net.HttpListener;$l.Prefixes.Add("http://localhost:8000/");$l.Start();while($l.IsListening){$c=$l.GetContext();$u=$c.Request.QueryString['url'];if($u){Write-Host "Downloading: $u"; yt-dlp $u};$b=[Text.Encoding]::UTF8.GetBytes("OK");$c.Response.OutputStream.Write($b,0,$b.Length);$c.Response.Close()}