Unable to trigger unattended process through Powershell script

I am trying to run the process by using powershell script, I tried almost all solutions but in the end no solution worked.

The UiPath Orch version is 2020.10 on-premises.

The script I tried are:

  1. Path to UiPath Robot Executor

$uipathExe = “C:\Users\v.d.kumars\AppData\Local\UiPath\app-20.10.0-beta0149\UiRobot.exe”

Path to the JSON file containing process information

$jsonFilePath = “C:\Users\v.d.kumars.nuget\packages\109_QCB_NOSTRO_Report_Update_Process\1.0.1\lib\net45\project.json”

Command to execute the UiPath process using the JSON file in unattended mode

Start-Process $uipathExe -ArgumentList “execute --file "$jsonFilePath” --executor --unattended" -NoNewWindow -Wait

  1. Path to UiPath Robot Executor

$uipathExe = “C:\Users\v.d.kumars\AppData\Local\UiPath\app-20.10.0-beta0149\UiRobot.exe”

Path to the UiPath process package (ensure this is the correct path to your .nupkg file)

$processPath = “C:\Users\v.d.kumars.nuget\packages\109_QCB_NOSTRO_Report_Update_Process\1.0.1\lib\net45\Main.xaml”

Command to execute the UiPath process

Start-Process $uipathExe -ArgumentList “/file:$processPath”

Please help me to run the process through script.