The agent is basically the new robot tray in the latest version. In order to run a process via command line you first have to navigate to the folder where the robot executor is.
Try the following steps:
Navigate to βC:\Users\ [username]\AppData\Local\UiPathβ then there should be a folder there named βapp-[robot version]β please navigate to that folder as well and the UiRobot.exe should be inside. The UiRobot.exe is basically the executor component of Robot.
You can try the following lines:
cd βC:\Users\ [username]\AppData\Local\UiPath\app-[robot ver.]β β Navigates to where the UiRobot.exe is.