Show-ConsoleDemo
Runs an embedded ConsoleMonster gallery demo in the current PowerShell runspace.
Syntax
Show-ConsoleDemo
[-Slug] <String>
[-StaticSnapshot]
[-Step <Int32>]
[<CommonParameters>]#All Parameter SetsDescription
Executes the same self-contained PowerShell source offered by Get-ConsoleDemo -Path. The demo runs in a child scope of the current runspace and uses the current host and loaded ConsoleMonster commands. No child process, download or temporary script file is used. Live demos can be interrupted normally. -StaticSnapshot and -Step are passed to the demo; omitted parameters retain the script's defaults. Demo output and errors follow the normal PowerShell streams.
Examples
Example 1
Show-ConsoleDemo fleetRun the fleet demo.
Example 2
Show-ConsoleDemo assessment -StaticSnapshot -Step 0Render a deterministic snapshot.
Parameters
- -Slug String
- Exact demo slug from Get-ConsoleDemo.
- -StaticSnapshot SwitchParameter
- Renders one snapshot instead of running live interactions.
- -Step Int32
- Deterministic snapshot state, starting at zero. See the demo's Steps metadata for its snapshot count.
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.