I created the following PowerShell script who runs correctly executed from PowerShell ISE
But when I use Invoke PowerShell the same script fails with the error:
The parameters are correctly passed and I have the option
Any clue ?
Have a look below threads.
Problem: When trying to run a PowerShell script for SharePoint Online, got this error message: “Connect-PnPOnline : The term ‘Connect-PnPOnline’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling...
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.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.