Invoke PowerShell activity doesn't recognize Connect-PnPOnline term

I created the following PowerShell script who runs correctly executed from PowerShell ISE

image

But when I use Invoke PowerShell the same script fails with the error:

The parameters are correctly passed and I have the option IsScript active.

Any clue ?

@pcarpalhoso

Have a look below threads.

I already have seen these links.

Once again, in PowerShell ISE the script works fine and publish correctly into the Sharepoint2013 On-Premise.

In UiPath it fails with the error.

I think I had a similar experience. The workaround I did was to execute the script on the PowerShell UI launched by “c:\windows\sysnative\WindowsPowerShell\v1.0\powershell.exe” using the Start Process activity.

Screenshot 2021-09-19 225950

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.