Hi @Nick101,
Please refer below, looks like publishing package as nupkg is required for windows based project.
Hence, please try to publish the package and use below syntax, after -file, instead of .xaml provide nupkg package name:
C:\Users\USERNAME\AppData\Local\Programs\UiPath\Studio\UiRobot.exe execute --file UipathBatchFile.1.0.1.nupkg
OR
C:\Program Files\UiPath\Studio>UiRobot.exe execute --file UipathBatchFile.1.0.1.nupkg
Or
if you want to run with process id, use -p instead of -process
Regards
Sonali