I don't see how that .bat file is going work correctly on any Windows version. Your date substring commands are wrong.
Save this as a test.bat file and run on all of your machines. It will verify that they all have the date set in the same format.
@echo Here is the date variable.
@echo %date%
@echo Here is the year.
@echo %date:~10,4%
@echo Here is the month.
@echo %date:~4,2%
@echo Here is the day.
@echo %date:~7,2%
It should look like this.
C:\Temp> test.bat
Here is the date variable.
Sat 05/07/2022
Here is the year.
2022
Here is the month.
05
Here is the day.
07
Build your file names using the desired date sequence.
If some of your machines have different date formats, then I would recommend using Powershell instead of a .bat file.