Ways to interface with Citrix Terminal environment?

Has anyone worked on interfacing with terminal environment accessed through Citrix? I currently don’t see a way to use terminal activities through this way. They require me to be directly connected. OCR can’t even scrape the screen correctly at all.