"The system cannot find the path specified." In Unreal Engine 5

I had the same issue, was solved by Ranisz solution. I didn’t add a parameter but I opened the BAT file itself and changed this line

set SET_TURNKEY_VARIABLES=1
to
set SET_TURNKEY_VARIABLES=0

That solved the issue