Will it work in unattendedmode using Object repository Modern design

Hello All, I have created a Window Application login module in the Modern design Object repository and run it in Orchestrator (UnattendedMode), i got the error " |Invoke Login workflow: Cannot bring the target application in the foreground.|System. Exception: Exception.Message: Cannot bring the target application in the foreground.|" Can anyone please resolve this issue?

I got Error “Cannot bring the target application in foreground because the Windows session is locked.” as well.