Invoke PowerShell (Throw) error

I am working through UiPath’s tutorial on working with PowerShell and did it exactly, but I am getting this error:

It sounds as if though PowerShell needs to be put in environment variables, but is that a thing you can even do with PowerShell?

Here are the logs if anyone is interested:


Source: Invoke Power Shell (Throw)

Message: Cannot process command because of one or more missing mandatory parameters: Path.

Exception Type: System.Management.Automation.ParameterBindingException

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Management.Automation.ParameterBindingException: Cannot process command because of one or more missing mandatory parameters: Path.
at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

are you an admin in the system? you might need an administrative rights to run the command.
Make sure you have installed the Power Shell library.

1 Like

try putting this C:\windows\System32\WindowsPowerShell\ in your PATH environment variable

1 Like

Hello, Anybody found a solution for this error ?

Hi @snelzing,
Have you found solution for the Invoke PowerShwll(Throw) error.?
If yes, can you please share the steps.