An error occurred while trying to generate project files.

Hi. Ever since I have installed a fresh copy of Windows, every time I try to create a new C++ project inside unreal engine I get this error:


An error occurred while trying to generate project files.

Running D:/Program Files/Unreal Engine/UE_5.2/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“C:/Users/Jahangir/Desktop/Newfolder/FPS_GAME/FPS_GAME.uproject” -game -rocket -progress
CreateProc failed: The system cannot find the file specified. (0x00000002)
URL: D:/Program Files/Unreal Engine/UE_5.2/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“C:/Users/Jahangir/Desktop/Newfolder/FPS_GAME/FPS_GAME.uproject” -game -rocket -progress
Couldn’t create process ‘D:/Program Files/Unreal Engine/UE_5.2/Engine/Build/BatchFiles/Build.bat’

I have made sure that I have everything necessary installed on Visual Studio 2022 and I also have installed .NET framework 8.0 and 4.8 and added them to system environment path. I also have reinstalled both Visual studio and unreal engine 3 times each.
I have searched internet and couldn’t find any solutions.
I appreciate any help regarding this problem.