Given the issues with finding yt-dlp.exe, I've added variables for the absolute path.
If USER_YTDLP_PATH is set and the file exists, it is used;
otherwise, yt-dlp.exe is searched for in the VLC directory;
hidecon.exe is taken from USER_HIDECON_PATH; otherwise, it is searched for next to the found yt-dlp.exe;
if nothing is found - fallback to yt-dlp.exe from the PATH.
As shown in the log in the screenshot, yt-dlp is taken from the specified path C:\test\yt-dlp.exe