Unsupported PowerShell Commands

The Security Controls scripting engine differs somewhat from running scripts in a PowerShell command window or in the PowerShell_ISE application. Each PowerShell application is a different “host” environment and supports different host options. The Security Controls script engine does not currently implement the following host commands. Attempting to use these commands in your scripts will result in an error.

  • Out-Host
  • Read-Host
  • Write-Host
  • Out-GridView

Use Out-Default, Out-String, or Write-Output in place of Out-Host and Write-Host. Since Security Controls scripts run in a background service, interactive scripts are not supported. Therefore, there is no substitute for Read-Host or Out-GridView.