Getting error 'Cannot bring the target application in the foreground.' when process is triggreed from orchestrator and unattended bot is trying to execute it on remote machine

I have one use case -

Suppose there is schedulded foreground processe that needs to be executed at night using unattended bot and no one is logged into RDC session then they will get fail .

How to handle this usecase ?