%DATE:~-10,4%
%DATE:~-5,2%
%DATE:~-2%
%TIME:~0,2%
%TIME:~3,2%
%TIME:~6,2%
FOR /F "usebackq delims=" %%a in (`powershell "(get-date).AddDays(-7).ToString(\"yyyy-MM-dd\")"`) do Set TARGET_DATE=%%a