Use this bash file & modify it to use youtube-dl(https://github.com/ytdl-org/youtube-dl), can be used on windows with a bash like terminal on windows also. Use MobaXterm for better compaitability on windows. Also modify file paths according to usage. You can also use this to learn how to use youtube-dl manually.
View the Project on GitHub Subhankar2000/bash-script-to-automate-youtubedl-command-line
Use this bash file & modify it to use youtube-dl, can be used on windows with a bash like terminal on windows also