Running by Command Line in Chrome headless mode in MacOs

Yeah, the issue is that the RPA software does not run in headless mode. But if you only use Selenium IDE compatible commands then you can run the browser in background.

If you use UI testing commands, then the browser (or the desktop app that you are automating) needs to stay in the foreground and the machine unlocked. This is a limiation for all UI automation tools.