When working on a new server, I have encountered this error a couple of times.
UBBGEN.exe is missing the mfc100u.dll. This is because it can’t find it in the system32 folder. In order to fix it you need to run the Visual Studio Retail Assemblies in the server.
In 8.51, go to the %PS_HOME%\setup\vcredist\ run the 64 bit executable. If it prompts you select to repair, otherwise just follow the prompts.
In 8.53, go to the %PS_HOME\setup\psvccrt\ run the program psvccrt_retail_x64.msi.
Restart your psadmin session and you should now be able to build your application server and process scheduler domains without an issue.