# Invoke PowerShell

This activity executes a PowerShell command with specified input parameters.

### Input

* **Command Text:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)![](/files/-MVREnwPf_D3-qJvjjYd)\
  The PowerShell command that is to be executed.
* **Input:** [`ICollection Argument`](/getting-started/rpa-studio/arguments.md#icollection)\
  A collection of PSObjects that are passed to the writer of the pipeline used to execute the command. Can be the output of another Invoke PowerShell activity.
* **Parameters:** [`Dictionary Argument`](/getting-started/rpa-studio/arguments.md#dictionary)`Optional`\
  A dictionary of PowerShell command parameters.

### Misc

* **IsScript:**
  * `True` - Specifies that the command text is a script.
  * `False` - Specifies that the command text is not a script.<br>
* **PowerShell Variables:** [`Dictionary Argument`](/getting-started/rpa-studio/arguments.md#dictionary)\
  A dictionary of named objects that represent variables used within the current session of the command.

### Output

* **Result:** [`String Variable`](/getting-started/rpa-studio/variables.md#string)\
  Stores an output returned by the execution of the command in the specified [String ](/getting-started/rpa-studio/variables.md#string)variable.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.visualyze.ai/rpa-studio/application/powershell/invoke-powershell.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
