Help Center>Foundation Help

Applies to:

  • Winshuttle Foundation

Execute Powershell plugin properties

The Execute Powershell plugin allows you to invoke a Powershell command or script within a workflow.

Usage example

Powershell can be used to perform a variety of complex tasks. For example, you might use Powershell to make specific changes to a SharePoint list, such as changing list permissions, adding or removing columns, or a sequence of commands contained within a single script.

Value Pair

Description

arguments

The arguments to pass to the command.

command

The path to the server and the name of the Powershell script to run.

For example: \\server-name\folder-name\command-name.ps1

outputcolumn

The SharePoint column into which the output will be placed.

When you save and route a form using the Execute Powershell Plugin, an entry is made in the SVService that will run the next time svservice.exe runs. (See Winshuttle Workflow SVService types for more information about SVService.)

Important: If you use the form element property Run Embedded Plugin with the Execute Powershell Plugin it does the same thing, i.e. creates an entry for SVService that will run the next time SVService runs.

Tip: Only plugins that do not need SVService to run will run immediately.

Winshuttle recommends

  • Use the Execute Powershell Plugin with the Workflow Plugin node
  • Do not use the Execute Powershell Plugin with embedded buttons.