Currently with Autopilot if you wish to run the UiAutomation you have to build a process without Cross Platform on Windows and then in that case make sure the robot runs on Attended license where the autopilot is being used. Since Autopilot is a background process you can run a paraller foreground process with it.
I will create a video to showcase that in my series in upcoming video as well.