Automation Anywhere on Virtual Machines

Hello Everyone,
I currently have Automation Anywhere installed on a VM. The task is scheduled to run at specified time. The issue is that when the VM is not connected via RDP, the automation does not trigger. If I am logged in via RDP, it will trigger but if I disconnect the automation will fail. Are there any solution for this type of issues?
Thanks