PowerShell connector methods

  • Release version: Australia
  • Updated March 12, 2026
  • 1 minute to read
  • The PowerShell connector methods act as interfaces with the Microsoft PowerShell to send requests and get responses in the RPA Desktop Design Studio.

    CreateShell

    Acts as an interface to pass your inputs in the form of commands and scripts. The CreateShell method is the first method you must use.

    InvokeCommand

    Runs commands and block of scripts on local or remote computers and gets the output including errors, if any.
    Note:
    You must execute the CreateShell method before executing this method.
    Input
    Command (String)
    Output
    Return

    InvokeScript

    Runs a script on local or remote computers and gets the output.
    Note:
    You must execute the CreateShell method before executing this method.
    Input
    Script
    Output
    Return

    PSObjectToString

    Accepts PowerShell objects from other methods or components and converts them to a string.
    Inputs
    PSObject

    GetValuesByProperty

    Accepts a PowerShell object and gets the values of the various properties.
    Inputs
    PSObject
    Output
    Return (String)

    Disconnect

    Disconnects the connection to the PowerShell.

    Serialize

    Accepts a PowerShell object and returns the object as a string.

    Input
    PSObject
    Output
    Return (String)