> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Security And Compliance Command

> Locally executes a user provided Security and Compliance script in PowerShell. Commands executed here will be performed using the Exchange Online connection credentials. There must be the required scopes and permissions to access the Security and Compliance shell.

Installed version: 3.5.0

<Note>
  If there's an error in a command in the middle of the script and the last command succeeds, the entire action will succeed, not revealing that some command may have failed.
</Note>

## Parameters[​](#parameters "Direct link to Parameters")

| Parameter | Description                                                  |
| --------- | ------------------------------------------------------------ |
| Code      | PowerShell code to execute in Security and Compliance shell. |
