Not sure if it’s the best solution but this works:
-put your RunUAT command in a seperate batch file.
-use call to call it from a master batch file.
e.g.:
call BUILD.bat
…the shell returns and you can put your command to deploy and launch it after in the master bat. file.