Skip to main content

Module powershell

Module powershell 

Source
Expand description

PowerShell execution utilities.

This module provides PowerShell command parsing, execution, and security analysis.

Structs§

CommandElementChild
A child node of a command element
ParsedCommandElement
A command invocation within a pipeline
ParsedPowerShellCommand
Complete parsed PowerShell command
ParsedRedirection
Redirection
ParsedStatement
A statement in the PowerShell command
PipelineSegment
Pipeline segment
SecurityFlags
Security flags derived from parsing

Enums§

CommandElementType
Command element type (AST node classification)
PipelineElementType
Pipeline element type
StatementType
Statement type

Constants§

PS_TOKENIZER_DASH_CHARS
Alternative parameter prefix characters

Functions§

build_powershell_command
Build a PowerShell command that outputs as UTF-8
build_powershell_command_utf8
Build a PowerShell command with UTF-8 output encoding
derive_security_flags
Derive security flags from parsed command
escape_powershell_string
Escape a string for use in PowerShell
get_powershell_version
Get the PowerShell version
is_powershell_available
Check if PowerShell is available
is_powershell_parameter
Check if a string is a PowerShell parameter
parse_powershell_command
Parse a PowerShell command string into components