Thank you so much for submitting your concern,
I would like to let you know that the Agent service will not be able to run GUI scripts (such as TruClient, Citrix, SAPGUI, etc.). This is due to the constraints that the operating system puts on services when they run. The Agent process does not have such limitations. It is only limited by the permissions of the user who is logged in.
You could check the above information in the following KM: https://softwaresupport.softwaregrp.com/doc/KM182623
Have a great rest of your day!