Yes, this is possible. The available command line options are explained in help of UltraCompare on the page with title Command Line Options which can be found on the first help tab Contents in first list Getting Started.
It is possible to run directly from within a batch file uc.exe (Windows GUI version) with the parameters or uc.com which starts uc.exe and after termination of the GUI version outputs the results to console respectively the standard output stream of Windows command processor processing the batch file. It is also possible to run uc.exe by using command start for example with
This results in running Windows GUI version of UltraCompare with minimized window while UltraCompare runs with window settings as on last exit on omitting start "UC Text Compare" /wait /min.
So there are three different methods to run UltraCompare from within a batch file and which one is best depends on your task.
Best regards from an UC/UE/UES for Windows user from Austria