Skip to content
ConsoleMonster
Cmdlet

Show-ConsoleDemo

Module
ConsoleMonster
Inputs
None
Outputs
System.Management.Automation.PSObject

Runs an embedded ConsoleMonster gallery demo in the current PowerShell runspace.

Syntax

Show-ConsoleDemo
[-Slug] <String>
[-StaticSnapshot]
[-Step <Int32>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

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 fleet

Run the fleet demo.

Example 2

Show-ConsoleDemo assessment -StaticSnapshot -Step 0

Render a deterministic snapshot.

Parameters

-Slug String requiredposition: 0
Exact demo slug from Get-ConsoleDemo.
-StaticSnapshot SwitchParameter optional
Renders one snapshot instead of running live interactions.
-Step Int32 optional
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.