It seems like the Invoke PowerShell activity in UiPath is not passing the parameters correctly. To ensure the parameters are passed correctly, try using the ‘-File’ parameter with the PowerShell executable and then specify the script path and arguments separately. Here’s the modified command: