$Output = [int] (Get-ChildItem -Exclude *.ps1, *.txt, *.html, *.js, *.css, *.exe | Select-Object BaseName -Last 1 | Select-Object -ExpandProperty BaseName) $Output++ $Output = $Output.ToString().PadLeft(5, '0') + ".mp4" # yt-dlp.exe --cookies-from-browser "vivaldi" $args[0] -o $Output yt-dlp.exe $args[0] --recode-video mp4 -o $Output ./generate-max.ps1