Cmdlet
Invoke-ConsoleDemo
Types a scripted PowerShell demo into a real terminal and records it.
Syntax
Invoke-ConsoleDemo
[-Destination] <String>
[-Height <Int32>]
[-IdleLimit <Double>]
[-Path] <String>
[-Redact <String[]>]
[-Seed <Int32>]
[-Shell <String>]
[-StepTimeoutSeconds <Int32>]
[-Width <Int32>]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Runs plain PowerShell with optional chapter, pause, setup, type-only, narration, WPM and output-wait directives. Uses OSC 133 readiness marks independent of visible prompt text and operating system. Character jitter uses a fixed seed; use fixed data and environment for repeatable output.
Examples
Example 1
Invoke-ConsoleDemo -Path ./demo.ps1 -Destination ./talk.cast -Seed 42Record a talk
Parameters
- -Destination String
- Destination asciicast v2 recording. Existing recordings are never overwritten.
- -Height Int32
- Terminal height in cells.
- -IdleLimit Double
- Longest recorded idle gap in seconds; zero preserves actual timing.
- -Path String
- Plain PowerShell demo file with optional # demo: directives.
- -Redact String[]
- Output patterns redacted before recording.
- -Seed Int32
- Seed for repeatable character timing.
- -Shell String
- Child PowerShell executable. Defaults to the current PowerShell.
- -StepTimeoutSeconds Int32
- Maximum wait for a semantic prompt or output pattern.
- -Width Int32
- Terminal width in cells.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.