UE 5.0 RunUAT.bat throws "The system cannot find the path specified." stderr

Hi, I have this error happening on several machines so far when we run “RunUAT.bat” tasks.

AutomationTool exiting with ExitCode=0 (Success)
Updating environment variables set by a Turnkey sub-process
The system cannot find the path specified.
The system cannot find the path specified.

The system cannot find the path specified. comes as stderr and break our builds we upgraded from UE4.27

Our build is VS2019 (16.11.16) and VS2022 (17.2.5) with all workloads and prerequesisites installed accroding to respective UE documentation.

So far I’ve tried:

  • Reinstalling Visual Studio 2022
  • Adding WPF and Desktop C++ development workloads
  • Manually installing .NET 3.1 SDK

What else can be missing?