Thanks for the tips!
I just wanted to add that I could not build a plugin at first and noticed warnings/errors related to the Visual Studio version. The batch file eventually executes “UnrealBuildTool.exe” with the parameter " -2017", causing “ERROR: Visual Studio 2017 must be installed in order to build this target.” (I have VS 2022 installed). From reading other threads I figured out I had to add the parameter “-VS2019” when invoking RunUAT.bat, which solved this issue.