Glad i was able to help.
I have a LOT of scripts to do all kinds of things, so I am used to thinking about double % and also delayed expansions in loops.
Whenever I encounter a new command-line program with a gazillion options and switches, I ask Gemini or ChatGPT to give me my first syntax and go from there. They are usually about 95% accurate so it cuts down a lot on the time needed to get the exact syntax I want.
Because of the number of scripts I have, I find that using FileMenu Tools makes life easier, and I don't have to remember what I called the script.
I just right click on the folder where i want to download or process files and i get a menu of all i can do. I have sections for Comics, Videos, Images, etc...
Here is what my Videos section looks like:

The last free version of FMT is v7.0.5. Versions after that are paid. 7.0.5 works just fine for what I need. I got it from here a few years back.
Here is the script attached to the command at the very top. Maybe it will give you other ideas...I don't really use it anymore as it was mainly to download from DiscoveryPlus and TLC before they added DRM:
@Echo off
REM ************************
REM Download with yt-dlp
REM ************************
setlocal ENABLEDELAYEDEXPANSION
set /P "url=Please enter the URL of the video to download: "
echo Analyzing provided URL...
REM echo url ^| findstr /R discoveryplus >nul
REM IF ERRORLEVEL 1 GOTO other
REM yt-dlp.exe -U -F --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
yt-dlp.exe -U -F --no-geo-bypass "%url%"
Echo.
Echo 1: Aria2c Downloader
Echo 2: Native yt-dlp Downloader
Echo.
set /P "dl=Please select your preferred downloader for this video: "
IF %dl%==1 GOTO aria2c
IF %dl%==2 GOTO native
:aria2c
Echo.
Echo -------------------------------------------
Echo 1: Best 1080p Bitrate Under 4000k
Echo 2: Highest 1080p Bitrate
Echo 3: 2nd Highest 1080p Bitrate
Echo 4: Lowest 1080p Bitrate
Echo 5: Highest 720p Bitrate
Echo 6: 2nd Highest 720p Bitrate
Echo 7: Lowest 720p Bitrate
Echo 8: Best
Echo 9: Pick by ID
Echo -------------------------------------------
Echo.
set /P "quality=What resolution would you like to download?: "
IF %quality%==1 GOTO midvbr1080
IF %quality%==2 GOTO highest1080
IF %quality%==3 GOTO 2ndhighest1080
IF %quality%==4 GOTO lowest1080
IF %quality%==5 GOTO highest720
IF %quality%==6 GOTO 2ndhighest720
IF %quality%==7 GOTO lowest720
IF %quality%==8 GOTO best
IF %quality%==9 GOTO manual
:midvbr1080
yt-dlp.exe -U -i -f "bv[height=1080][vbr<4000]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --downloader aria2c --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:highest1080
yt-dlp.exe -U -i -f "bv[height=1080]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --downloader aria2c --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:2ndhighest1080
yt-dlp.exe -U -i -f "bv*.2[height=1080]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --downloader aria2c --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --ignore-config --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:lowest1080
yt-dlp.exe -U -i -f "wv[height=1080]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --downloader aria2c --sub-format "ass/srt/best" --convert-subs=srt --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:highest720
yt-dlp.exe -U -i -f "bv[height=720]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --downloader aria2c --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:2ndhighest720
yt-dlp.exe -U -i -f "bv*.2[height=720]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --downloader aria2c --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:lowest720
yt-dlp.exe -U -i -f "wv*.3[height=720]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --downloader aria2c --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:manual
yt-dlp.exe -U -i -f - --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --downloader aria2c --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:best
yt-dlp.exe -U -i --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --downloader aria2c --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:native
Echo.
Echo -------------------------------------------
Echo 1: Best 1080p Bitrate Under 4000k
Echo 2: Highest 1080p Bitrate
Echo 3: 2nd Highest 1080p Bitrate
Echo 4: Lowest 1080p Bitrate
Echo 5: Highest 720p Bitrate
Echo 6: 2nd Highest 720p Bitrate
Echo 7: Lowest 720p Bitrate
Echo 8: Best
Echo 9: Pick by ID
Echo -------------------------------------------
Echo.
set /P "quality=What resolution would you like to download?: "
IF %quality%==1 GOTO midvbr1080n
IF %quality%==2 GOTO highest1080n
IF %quality%==3 GOTO 2ndhighest1080n
IF %quality%==4 GOTO lowest1080n
IF %quality%==5 GOTO highest720n
IF %quality%==6 GOTO 2ndhighest720n
IF %quality%==7 GOTO lowest720n
IF %quality%==8 GOTO bestn
IF %quality%==9 GOTO manualn
:midvbr1080n
yt-dlp.exe -U -i -f "bv[height=1080][vbr<4000]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --concurrent-fragments 10 --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:highest1080n
yt-dlp.exe -U -i -f "bv[height=1080]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --concurrent-fragments 10 --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:2ndhighest1080n
yt-dlp.exe -U -i -f "bv*.2[height=1080]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --concurrent-fragments 10 --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --ignore-config --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:lowest1080n
yt-dlp.exe -U -i -f "wv[height=1080]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --concurrent-fragments 10 --sub-format "ass/srt/best" --convert-subs=srt --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:highest720n
yt-dlp.exe -U -i -f "bv[height=720]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --concurrent-fragments 10 --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:2ndhighest720n
yt-dlp.exe -U -i -f "bv*.2[height=720]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --concurrent-fragments 10 --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:lowest720n
yt-dlp.exe -U -i -f "wv*.3[height=720]+ba" --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --concurrent-fragments 10 --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:manualn
yt-dlp.exe -U -i -f - --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --concurrent-fragments 10 --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:bestn
yt-dlp.exe -U -i --compat-options filename-sanitization --write-sub --add-metadata --extractor-retries 10 -o "%%(series)s.%%(season_number)sx%%(episode_number)02d.%%(title)s.%%(height)sp WEB-DL.%%(ext)s" --remux-video mkv --concurrent-fragments 10 --sub-format "ass/srt/best" --sub-langs "en.*,fr.*,ro.*,rum.*" --no-geo-bypass --cookies "C:/Utils/Cookies/%COMPUTERNAME%.txt" "%url%"
GOTO exit
:exit
pause