Pass the argument into Start Process to run power shell script

Hi @ClaytonM and All,

I need to run a power shell script using Start Process activity and passing arguments in UiPath.

I have followed all the steps mentioned in the below link,
Pass the argument into Start Process - #8 by vikkhanna55 and
Pass the argument into Start Process - #9 by ClaytonM

But, I am getting an error from power shell script ISE as “Error processing arguments: To open multiple files, provide a single list of file names that are separated by commas in power shell”

Kindly help me in resolving the issue.

Hi, is there any specific requirement for you to run the Powershell Script using Start Process activity?
There is an Invoke Powershell Activity present with the UiPath.System.Activites package

Hi @Nishant_Banka1

There is no specific requirement as such but When I am using Invoke power shell script activity I am getting an error as - Invoke Power Shell: Cannot find type [Microsoft.SharePoint.Client.MoveCopyOptions]: verify that the assembly containing this type is loaded.

The same script is working fine if I run it manually and It is also working fine if I use Invoke Power shell script activity in a separate new process.

Basically whenever I install UipathTeam.SharePoint.Activity package in the same project folder I am getting above mentioned error.

So I thought of run the script using Start Process activity.

This tells me that you might have an older version of the Script or Powershell activity package (whatever it’s called). This might be why it works when you use it in a new process. The “MoveCopyOptions” is probably a property that was introduced in a newer version of the package, and dependencies are usually included when you install a package anyway.

Let us know if updating the version of the activity package for the project helps resolve the error.