Is it possible to automate citrix inside a remote desktop (VM)?

Hello Everyone;
As the title says, is it possible to run a solution from the cloud and have this solution open a citrix environment and automate a process there?

so far, it isn’t working for me. is there anyone who made it work?