Running the robot on the server/remote desktop


I am now facing to several issues related to scheduling the robot and running it on the server.

We are using task scheduler. We have implemented several solutions such as:

and application which moves with the mouse cursos by one pixel every 100 seconds.

When the mouse app is on, everything works. However, when we turned it off, it fails.
Does anyone know what could be the basis of such behaviour?