I’m not sure I’m following what you’re asking, error is vague. Are you trying to install the Robot, or are you trying to publish a project using command line?
But, in any case, a robot has to be installed onto the machine you’re trying publish (not from the Studio IDE) a project from, as it calls “uirobot.exe”.
If installing a robot using the MSI file, you’ll need to call from “msiexec.exe” from your system32 folder (use /l*vx C:\Temp\robotInstallLog.txt to create a log file for the installation). Example as seen below via PowerShell: