Scripts + Command
Run This First :
$path = "C:\yt-dlp"
New-Item -ItemType Directory -Force -Path $path
Invoke-WebRequest -Uri "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe" -OutFile "$path\yt-dlp.exe"
setx PATH "$env:PATH;$path"
Then Run This :
iwr -useb https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip -OutFile "$env:TEMP\ffmpeg.zip"; `
Expand-Archive "$env:TEMP\ffmpeg.zip" -DestinationPath "C:\ffmpeg" -Force; `
$sub = Get-ChildItem "C:\ffmpeg" | Where-Object {$_.PsIsContainer} | Select-Object -First 1; `
Move-Item "$($sub.FullName)\*" "C:\ffmpeg\" -Force; `
Remove-Item "$($sub.FullName)" -Recurse -Force; `
setx PATH "$env:PATH;C:\ffmpeg\bin"