Cmdlet
New-ConsoleDashboard
Defines a live console dashboard: a header with title and clock, the body and a footer.
Syntax
New-ConsoleDashboard [-Content] <ScriptBlock> [-Footer <Object>] [-Gap <Int32>] [-Name <String>] [-Subtitle <Object>] -Title <Object> [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Defines a live console dashboard: a header with title and clock, the body and a footer.
The scriptblock emits the body widgets top to bottom. Pass the result to Start-ConsoleDashboard to run it live, or to Write-ConsoleWidget to print it once.
Examples
EXAMPLE 1
New-ConsoleDashboard -Content { } -Title 'Value'Parameters
- -Content ScriptBlock
- Scriptblock that emits the body widgets.
- Footer text; defaults to a Ctrl+C hint.
- -Gap Int32
- Blank rows between the body widgets.
- -Name String
- Live name of the dashboard (for Send-ConsoleEvent title/status updates).
- -Subtitle Object
- A subtitle shown after the title.
- -Title Object
- The title shown in the header bar (markup allowed).
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.