Skip to content
ConsoleMonster
Cmdlet

Out-ConsoleFormatCommand

Module ConsoleMonster
Inputs
System.Management.Automation.PSObject

Renders native PowerShell formatting records through ConsoleMonster.

Syntax

Out-ConsoleFormatCommand [-AsWidget] [-InputObject <PSObject>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Renders native PowerShell formatting records through ConsoleMonster.

The host-only sink used by Enable-ConsoleFormatting -Feature FormatCommands. PowerShell still resolves properties, calculated expressions, grouping and named views. Unrecognized formatting records are passed to the native Out-Default. Use -AsWidget to export the same view with Export-ConsoleFrame.

Examples

Authored help example

EXAMPLE 1

Get-Process | Microsoft.PowerShell.Utility\Format-Table Name, Id | Out-ConsoleFormatCommand -AsWidget | Export-ConsoleFrame -Path processes.html

Export a native table using ConsoleMonster's frame exporter

Parameters

-AsWidget SwitchParameter optional
Returns the view widget for composition or export.
-InputObject PSObject optionalpipeline: True (ByValue)
Native Format-Table, Format-List or Format-Wide output records.

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.