The Format commands keep working: with Enable-ConsoleFormatting, Format-Table, Format-List and Format-Wide draw ConsoleMonster views when their output goes straight to the console. When a table needs more than Format-Table can say (a presenter, a totals row, a column that hides first in a narrow window), Show-ConsoleTable takes the same pipeline input with column options.
Name Kind Length Time Signed Path ---- ---- ------ ---- ------ ---- Orion.2.0.0.nupkg NuGet 1482113 00:00:48.2000000 True D:\Builds\Orion\Packed\Orion.2.0.0.nupkg Orion.2.0.0.snupkg NuGet 402331 00:00:03.1000000 True D:\Builds\Orion\Packed\Orion.2.0.0.snupkg Orion-2.0.0.zip Module 2904576 00:00:11.7000000 True D:\Builds\Orion\Packed\Orion-2.0.0.zip Docs.zip Module 51302 00:00:01.2000000 False D:\Builds\Orion\Packed\Docs.zip
Build artifacts ╭────────────────────┬─────────┬──────────┬────────┬───────────────────────────────────────────╮ │ Name │ Size │ Built in │ Signed │ Path │ ├─ Module · 2 ───────┼─────────┼──────────┼────────┼───────────────────────────────────────────┤ │ Orion-2.0.0.zip │ 2.77 MB │ 12 s │ ✓ yes │ D:\Builds\Orion\Packed\Orion-2.0.0.zip │ │ Docs.zip │ 50.1 KB │ 1.2 s │ – no │ D:\Builds\Orion\Packed\Docs.zip │ │ Subtotal │ 2.82 MB │ 13 s │ │ │ ├─ NuGet · 2 ────────┼─────────┼──────────┼────────┼───────────────────────────────────────────┤ │ Orion.2.0.0.nupkg │ 1.41 MB │ 48 s │ ✓ yes │ D:\Builds\Orion\Packed\Orion.2.0.0.nupkg │ │ Orion.2.0.0.snupkg │ 393 KB │ 3.1 s │ ✓ yes │ D:\Builds\Orion\Packed\Orion.2.0.0.snupkg │ │ Subtotal │ 1.8 MB │ 51 s │ │ │ ├────────────────────┼─────────┼──────────┼────────┼───────────────────────────────────────────┤ │ Total │ 4.62 MB │ 1 m 04 s │ │ │ ╰────────────────────┴─────────┴──────────┴────────┴───────────────────────────────────────────╯
# Build artifacts as a module build reports them.
$artifacts = @(
[pscustomobject] @{ Name = 'Orion.2.0.0.nupkg'; Kind = 'NuGet'; Length = 1482113
Time = [timespan]::FromSeconds(48.2); Signed = $true
Path = 'D:\Builds\Orion\Packed\Orion.2.0.0.nupkg' }
[pscustomobject] @{ Name = 'Orion.2.0.0.snupkg'; Kind = 'NuGet'; Length = 402331
Time = [timespan]::FromSeconds(3.1); Signed = $true
Path = 'D:\Builds\Orion\Packed\Orion.2.0.0.snupkg' }
# … 6 more lines in the full program
)
$artifacts | Format-Table -AutoSizeFull program
# Build artifacts as a module build reports them.
$artifacts = @(
[pscustomobject] @{ Name = 'Orion.2.0.0.nupkg'; Kind = 'NuGet'; Length = 1482113
Time = [timespan]::FromSeconds(48.2); Signed = $true
Path = 'D:\Builds\Orion\Packed\Orion.2.0.0.nupkg' }
[pscustomobject] @{ Name = 'Orion.2.0.0.snupkg'; Kind = 'NuGet'; Length = 402331
Time = [timespan]::FromSeconds(3.1); Signed = $true
Path = 'D:\Builds\Orion\Packed\Orion.2.0.0.snupkg' }
[pscustomobject] @{ Name = 'Orion-2.0.0.zip'; Kind = 'Module'; Length = 2904576
Time = [timespan]::FromSeconds(11.7); Signed = $true
Path = 'D:\Builds\Orion\Packed\Orion-2.0.0.zip' }
[pscustomobject] @{ Name = 'Docs.zip'; Kind = 'Module'; Length = 51302
Time = [timespan]::FromSeconds(1.2); Signed = $false
Path = 'D:\Builds\Orion\Packed\Docs.zip' }
)
$artifacts | Format-Table -AutoSize# Build artifacts as a module build reports them.
$artifacts = @(
[pscustomobject] @{ Name = 'Orion.2.0.0.nupkg'; Kind = 'NuGet'; Length = 1482113
Time = [timespan]::FromSeconds(48.2); Signed = $true
Path = 'D:\Builds\Orion\Packed\Orion.2.0.0.nupkg' }
[pscustomobject] @{ Name = 'Orion.2.0.0.snupkg'; Kind = 'NuGet'; Length = 402331
Time = [timespan]::FromSeconds(3.1); Signed = $true
Path = 'D:\Builds\Orion\Packed\Orion.2.0.0.snupkg' }
# … 6 more lines in the full program
)
$artifacts | Show-ConsoleTable -Title '[bold]Build artifacts[/]' -GroupBy Kind -Property @(
@{ Name = 'Name'; Key = $true; Overflow = 'Never' }
@{ Name = 'Length'; Header = 'Size'; Presenter = 'Bytes'; Priority = 9; Aggregate = 'Sum' }
@{ Name = 'Time'; Header = 'Built in'; Presenter = 'Duration'; Priority = 6; Aggregate = 'Sum' }
@{ Name = 'Signed'; Presenter = 'Boolean'; Priority = 5 }
@{ Name = 'Path'; Overflow = 'TruncateMiddle'; Priority = 1; MinWidth = 20 }
) -ShowTotalsFull program
Import-Module ConsoleMonster
# Build artifacts as a module build reports them.
$artifacts = @(
[pscustomobject] @{ Name = 'Orion.2.0.0.nupkg'; Kind = 'NuGet'; Length = 1482113
Time = [timespan]::FromSeconds(48.2); Signed = $true
Path = 'D:\Builds\Orion\Packed\Orion.2.0.0.nupkg' }
[pscustomobject] @{ Name = 'Orion.2.0.0.snupkg'; Kind = 'NuGet'; Length = 402331
Time = [timespan]::FromSeconds(3.1); Signed = $true
Path = 'D:\Builds\Orion\Packed\Orion.2.0.0.snupkg' }
[pscustomobject] @{ Name = 'Orion-2.0.0.zip'; Kind = 'Module'; Length = 2904576
Time = [timespan]::FromSeconds(11.7); Signed = $true
Path = 'D:\Builds\Orion\Packed\Orion-2.0.0.zip' }
[pscustomobject] @{ Name = 'Docs.zip'; Kind = 'Module'; Length = 51302
Time = [timespan]::FromSeconds(1.2); Signed = $false
Path = 'D:\Builds\Orion\Packed\Docs.zip' }
)
$artifacts | Show-ConsoleTable -Title '[bold]Build artifacts[/]' -GroupBy Kind -Property @(
@{ Name = 'Name'; Key = $true; Overflow = 'Never' }
@{ Name = 'Length'; Header = 'Size'; Presenter = 'Bytes'; Priority = 9; Aggregate = 'Sum' }
@{ Name = 'Time'; Header = 'Built in'; Presenter = 'Duration'; Priority = 6; Aggregate = 'Sum' }
@{ Name = 'Signed'; Presenter = 'Boolean'; Priority = 5 }
@{ Name = 'Path'; Overflow = 'TruncateMiddle'; Priority = 1; MinWidth = 20 }
) -ShowTotalsCommand map
| Habit | ConsoleMonster | Difference |
|---|---|---|
Format-Table, Format-List, Format-Wide at the prompt | The same commands after Enable-ConsoleFormatting | Same parameters. Only output that goes straight to the console changes. |
Format-Table -Property with calculated properties | Show-ConsoleTable -Property | Hashtables also take Presenter, Priority, Aggregate, Overflow and thresholds. |
Format-Table -GroupBy | Show-ConsoleTable -GroupBy | Groups without sorting first; -ShowTotals adds subtotals. |
Format-Table -AutoSize, -Wrap | The default, -Wrap | Columns are fitted to the window and hidden by priority; narrow windows get cards. |
Format-List | Show-Console -View List | A titled record with the same presenters. |
Format-Custom for nested objects | Show-Console -View Tree | Nested properties as a tree. |
Format-Table | Out-String | New-ConsoleTable | Export-ConsoleFrame -Format Text | Plain text of the drawn table. |
Format-Table | Out-File | Export-ConsoleFrame -Format Markdown -Path | Markdown, HTML or fenced text for a document. |
Shared sample data
Install with Install-Module ConsoleMonster -Scope CurrentUser and run Import-Module ConsoleMonster. Each example uses these rows.
$servers = @(
[pscustomobject] @{ Name = 'FS01'; Site = 'Warsaw'; Pending = 4; Status = 'Pass' }
[pscustomobject] @{ Name = 'SQL01'; Site = 'Dublin'; Pending = 12; Status = 'Warn' }
[pscustomobject] @{ Name = 'WEB01'; Site = 'Berlin'; Pending = 0; Status = 'Pass' }
)
1. Keep typing Format-Table
PowerShell
$servers | Format-Table Name, Site, Pending, Status -AutoSize
$servers[1] | Format-List
ConsoleMonster
Enable-ConsoleFormatting
$servers | Format-Table Name, Site, Pending, Status -AutoSize
$servers[1] | Format-List
The commands, parameters and aliases (ft, fl, fw) stay the same. $x = ... | Format-Table, | Out-String, | Out-File, >, jobs, remoting and transcripts keep PowerShell's formatting records and text. Enable-ConsoleFormatting -Exclude FormatCommands leaves the three commands native while the rest of everyday formatting stays on.
Format commands by default
The same three commands before and after Enable-ConsoleFormatting. Only output that goes straight to the console changes; assignments, pipelines, files, jobs and transcripts keep PowerShell's own formatting.
PS> Import-Module ConsoleMonster PS> # Invented services: the same inventory before and after formatting is enabled. PS> $services = @( [pscustomobject] @{ Name = 'WebApi'; Status = 'Running'; StartType = 'Automatic' } [pscustomobject] @{ Name = 'Worker'; Status = 'Running'; StartType = 'Automatic' } [pscustomobject] @{ Name = 'Archive'; Status = 'Stopped'; StartType = 'Manual' } ) PS> # Format-Table, Format-List and Format-Wide as PowerShell draws them PS> $services | Format-Table Name, Status, StartType -AutoSize Name Status StartType ---- ------ --------- WebApi Running Automatic Worker Running Automatic Archive Stopped Manual PS> $services[0] | Format-List Name, Status, StartType Name : WebApi Status : Running StartType : Automatic PS> $services | Format-Wide Name -Column 3 WebApi Worker Archive PS> Enable-ConsoleFormatting PS> # The same commands, drawn by ConsoleMonster PS> $services | Format-Table Name, Status, StartType -AutoSize ╭─────────┬───────────┬───────────╮ │ Name │ Status │ StartType │ ├─────────┼───────────┼───────────┤ │ WebApi │ ● Running │ Automatic │ │ Worker │ ● Running │ Automatic │ │ Archive │ – Stopped │ Manual │ ╰─────────┴───────────┴───────────╯ PS> $services[0] | Format-List Name, Status, StartType Name WebApi Status ● Running StartType Automatic PS> $services | Format-Wide Name -Column 3 WebApi Worker Archive
# Invented services: the same inventory before and after formatting is enabled.
$services = @(
[pscustomobject] @{ Name = 'WebApi'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Worker'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Archive'; Status = 'Stopped'; StartType = 'Manual' }
)
# Format-Table, Format-List and Format-Wide as PowerShell draws them
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3
Enable-ConsoleFormatting
# The same commands, drawn by ConsoleMonster
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3Full program
Import-Module ConsoleMonster
# Invented services: the same inventory before and after formatting is enabled.
$services = @(
[pscustomobject] @{ Name = 'WebApi'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Worker'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Archive'; Status = 'Stopped'; StartType = 'Manual' }
)
# Format-Table, Format-List and Format-Wide as PowerShell draws them
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3
Enable-ConsoleFormatting
# The same commands, drawn by ConsoleMonster
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3// A compiled cmdlet: the current PowerShell runspace owns native commands and callbacks.
[Cmdlet(VerbsLifecycle.Invoke, "FormatCommandsExample") ]
public sealed class FormatCommandsExample : PSCmdlet {
protected override void ProcessRecord() {
const string inventory = @"# Invented services: the same inventory before and after formatting is enabled.
$services = @(
[pscustomobject] @{ Name = 'WebApi'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Worker'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Archive'; Status = 'Stopped'; StartType = 'Manual' }
)
";
InvokeCommand.InvokeScript(inventory + @"& {
# Format-Table, Format-List and Format-Wide as PowerShell draws them
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3
} | Microsoft.PowerShell.Core\Out-Default");
ConsoleHostFormatting.Enable(
this,
new ConsoleFormattingOptions
{
Include = new[] { ConsoleFormattingFeature.FormatCommands },
Exclude = new[] { ConsoleFormattingFeature.Output, ConsoleFormattingFeature.Errors,
ConsoleFormattingFeature.Streams, ConsoleFormattingFeature.ReadLine }
});
try { InvokeCommand.InvokeScript(inventory + @"# The same commands, drawn by ConsoleMonster
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3"); }
finally { ConsoleHostFormatting.Disable(
this,
new[] { ConsoleFormattingFeature.FormatCommands }); }
}
}Full program
using System.Management.Automation;
using ConsoleMonster.PowerShell;
// A compiled cmdlet: the current PowerShell runspace owns native commands and callbacks.
[Cmdlet(VerbsLifecycle.Invoke, "FormatCommandsExample") ]
public sealed class FormatCommandsExample : PSCmdlet {
protected override void ProcessRecord() {
const string inventory = @"# Invented services: the same inventory before and after formatting is enabled.
$services = @(
[pscustomobject] @{ Name = 'WebApi'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Worker'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Archive'; Status = 'Stopped'; StartType = 'Manual' }
)
";
InvokeCommand.InvokeScript(inventory + @"& {
# Format-Table, Format-List and Format-Wide as PowerShell draws them
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3
} | Microsoft.PowerShell.Core\Out-Default");
ConsoleHostFormatting.Enable(
this,
new ConsoleFormattingOptions
{
Include = new[] { ConsoleFormattingFeature.FormatCommands },
Exclude = new[] { ConsoleFormattingFeature.Output, ConsoleFormattingFeature.Errors,
ConsoleFormattingFeature.Streams, ConsoleFormattingFeature.ReadLine }
});
try { InvokeCommand.InvokeScript(inventory + @"# The same commands, drawn by ConsoleMonster
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3"); }
finally { ConsoleHostFormatting.Disable(
this,
new[] { ConsoleFormattingFeature.FormatCommands }); }
}
}Download HostExample.csproj beside the source file.
Import-Module ConsoleMonster
$moduleBinary = Split-Path (Get-Command Show-Console).DLL
dotnet build ./HostExample.csproj -c Release "-p:ConsoleMonsterModuleDirectory=$moduleBinary"
Import-Module ./bin/Release/net8.0/HostExample.dll
Invoke-FormatCommandsExampleThis is a compiled PowerShell cmdlet class. Reference the installed module’s ConsoleMonster and ConsoleMonster.PowerShell assemblies in a PowerShell module project; ProcessRecord runs on the owning pipeline thread. Download the project beside the source file and build/run it from PowerShell 7.
// A compiled cmdlet: the current PowerShell runspace owns native commands and callbacks.
[Cmdlet(VerbsLifecycle.Invoke, "FormatCommandsExample")]
public sealed class FormatCommandsExample : PSCmdlet
{
protected override void ProcessRecord()
{
const string inventory = @"# Invented services: the same inventory before and after formatting is enabled.
$services = @(
[pscustomobject] @{ Name = 'WebApi'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Worker'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Archive'; Status = 'Stopped'; StartType = 'Manual' }
)
";
InvokeCommand.InvokeScript(inventory + @"& {
# Format-Table, Format-List and Format-Wide as PowerShell draws them
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3
} | Microsoft.PowerShell.Core\Out-Default");
ConsoleHostFormatting.Enable(
this,
new ConsoleFormattingOptions()
.Include(new[] { ConsoleFormattingFeature.FormatCommands })
.Exclude(new[]
{
ConsoleFormattingFeature.Output,
ConsoleFormattingFeature.Errors,
ConsoleFormattingFeature.Streams,
ConsoleFormattingFeature.ReadLine
}));
try
{
InvokeCommand.InvokeScript(inventory + @"# The same commands, drawn by ConsoleMonster
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3");
}
finally
{
ConsoleHostFormatting.Disable(this, new[] { ConsoleFormattingFeature.FormatCommands });
}
}
}
Full program
using System.Management.Automation;
using ConsoleMonster.PowerShell;
// A compiled cmdlet: the current PowerShell runspace owns native commands and callbacks.
[Cmdlet(VerbsLifecycle.Invoke, "FormatCommandsExample")]
public sealed class FormatCommandsExample : PSCmdlet
{
protected override void ProcessRecord()
{
const string inventory = @"# Invented services: the same inventory before and after formatting is enabled.
$services = @(
[pscustomobject] @{ Name = 'WebApi'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Worker'; Status = 'Running'; StartType = 'Automatic' }
[pscustomobject] @{ Name = 'Archive'; Status = 'Stopped'; StartType = 'Manual' }
)
";
InvokeCommand.InvokeScript(inventory + @"& {
# Format-Table, Format-List and Format-Wide as PowerShell draws them
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3
} | Microsoft.PowerShell.Core\Out-Default");
ConsoleHostFormatting.Enable(
this,
new ConsoleFormattingOptions()
.Include(new[] { ConsoleFormattingFeature.FormatCommands })
.Exclude(new[]
{
ConsoleFormattingFeature.Output,
ConsoleFormattingFeature.Errors,
ConsoleFormattingFeature.Streams,
ConsoleFormattingFeature.ReadLine
}));
try
{
InvokeCommand.InvokeScript(inventory + @"# The same commands, drawn by ConsoleMonster
$services | Format-Table Name, Status, StartType -AutoSize
$services[0] | Format-List Name, Status, StartType
$services | Format-Wide Name -Column 3");
}
finally
{
ConsoleHostFormatting.Disable(this, new[] { ConsoleFormattingFeature.FormatCommands });
}
}
}
Download HostExample.csproj beside the source file.
Import-Module ConsoleMonster
$moduleBinary = Split-Path (Get-Command Show-Console).DLL
dotnet build ./HostExample.csproj -c Release "-p:ConsoleMonsterModuleDirectory=$moduleBinary"
Import-Module ./bin/Release/net8.0/HostExample.dll
Invoke-FormatCommandsExampleThis is a compiled PowerShell cmdlet class. Reference the installed module’s ConsoleMonster and ConsoleMonster.PowerShell assemblies in a PowerShell module project; ProcessRecord runs on the owning pipeline thread. Download the project beside the source file and build/run it from PowerShell 7.
Turn it on
Install-Module ConsoleMonster -Scope CurrentUser
Import-Module ConsoleMonster
# Included by default; use -Exclude FormatCommands to keep native formatting.
Enable-ConsoleFormattingSee also: Enable-ConsoleFormatting
2. Calculated columns and groups
PowerShell
$servers | Sort-Object Status | Format-Table -GroupBy Status -Property Name, Site, @{
Name = 'Pending'; Expression = { $_.Pending }; Alignment = 'Right'
}
ConsoleMonster
$servers | Show-ConsoleTable -GroupBy Status -ShowTotals -Property Name, Site, @{
Name = 'Pending'; Presenter = 'DataBar'; Aggregate = 'Sum'
}
A column hashtable takes Name (or Expression), Header, Key, Priority, MinWidth, MaxWidth, Overflow, Alignment, Presenter, Aggregate and thresholds such as WarnAbove; the Show-ConsoleTable reference lists them all. Real pipeline data needs none of them: sizes and dates get their presenters automatically.
╭──────────────────────────┬───────────┬──────────────────╮ │ Name │ Length │ LastWriteTime │ ├─ .dll · 1 ───────────────┼───────────┼──────────────────┤ │ ConsoleMonster.dll │ 1,048,576 │ 2026-10-21 12:00 │ ├─ .json · 1 ──────────────┼───────────┼──────────────────┤ │ ConsoleMonster.deps.json │ 4,096 │ 2026-10-21 12:00 │ ├─ .ps1 · 1 ───────────────┼───────────┼──────────────────┤ │ start.ps1 │ 512 │ 2026-10-21 12:00 │ ╰──────────────────────────┴───────────┴──────────────────╯
# Invented package artifacts with fixed sizes and UTC timestamps.
$recordedAt = [datetimeoffset] '2026-10-21T12:00:00Z'
$files = @(
[pscustomobject] @{
Name = 'ConsoleMonster.dll'; Length = 1048576
LastWriteTime = $recordedAt; Extension = '.dll'
}
[pscustomobject] @{
Name = 'ConsoleMonster.deps.json'; Length = 4096
LastWriteTime = $recordedAt; Extension = '.json'
}
[pscustomobject] @{
Name = 'start.ps1'; Length = 512
LastWriteTime = $recordedAt; Extension = '.ps1'
}
)
$files | Show-ConsoleTable -Property Name, Length, LastWriteTime `
-GroupBy Extension -Presentation @{ TimeZone = [TimeZoneInfo]::Utc }Full program
Import-Module ConsoleMonster
# Invented package artifacts with fixed sizes and UTC timestamps.
$recordedAt = [datetimeoffset] '2026-10-21T12:00:00Z'
$files = @(
[pscustomobject] @{
Name = 'ConsoleMonster.dll'; Length = 1048576
LastWriteTime = $recordedAt; Extension = '.dll'
}
[pscustomobject] @{
Name = 'ConsoleMonster.deps.json'; Length = 4096
LastWriteTime = $recordedAt; Extension = '.json'
}
[pscustomobject] @{
Name = 'start.ps1'; Length = 512
LastWriteTime = $recordedAt; Extension = '.ps1'
}
)
$files | Show-ConsoleTable -Property Name, Length, LastWriteTime `
-GroupBy Extension -Presentation @{ TimeZone = [TimeZoneInfo]::Utc }3. Text and documents
PowerShell
$text = $servers | Format-Table -AutoSize | Out-String
$servers | Format-Table -AutoSize | Out-File ./servers.txt
ConsoleMonster
$text = $servers | New-ConsoleTable | Export-ConsoleFrame -Format Text
$servers | New-ConsoleTable | Export-ConsoleFrame -Format Markdown -Path ./servers.md
$servers | New-ConsoleTable | Export-ConsoleFrame -Format Markdown | Set-Clipboard
Show-ConsoleTable writes to the console the way Write-Host does, so $x = ... | Show-ConsoleTable captures nothing; -PassThru also passes the input objects on. New-ConsoleTable returns the table for an export or a layout. Markdown keeps table semantics, FencedText keeps the console layout in a text fence, and Html makes a page. All of them work in scripts and on Windows PowerShell 5.1.
| Name | Length | LastWriteTime | | :--- | ---: | :--- | | ConsoleMonster.dll | 1,048,576 | 2026-10-21 12:00 | | ConsoleMonster.deps.json | 4,096 | 2026-10-21 12:00 | | start.ps1 | 512 | 2026-10-21 12:00 |
# Invented package artifacts, exported as a Markdown table for a report.
$recordedAt = [datetimeoffset] '2026-10-21T12:00:00Z'
$files = @(
[pscustomobject] @{
Name = 'ConsoleMonster.dll'; Length = 1048576; LastWriteTime = $recordedAt
}
[pscustomobject] @{
Name = 'ConsoleMonster.deps.json'; Length = 4096; LastWriteTime = $recordedAt
}
[pscustomobject] @{
Name = 'start.ps1'; Length = 512; LastWriteTime = $recordedAt
}
)
$files | New-ConsoleTable -Property Name, Length, LastWriteTime `
-Presentation @{ TimeZone = [TimeZoneInfo]::Utc } |
Export-ConsoleFrame -Format MarkdownFull program
Import-Module ConsoleMonster
# Invented package artifacts, exported as a Markdown table for a report.
$recordedAt = [datetimeoffset] '2026-10-21T12:00:00Z'
$files = @(
[pscustomobject] @{
Name = 'ConsoleMonster.dll'; Length = 1048576; LastWriteTime = $recordedAt
}
[pscustomobject] @{
Name = 'ConsoleMonster.deps.json'; Length = 4096; LastWriteTime = $recordedAt
}
[pscustomobject] @{
Name = 'start.ps1'; Length = 512; LastWriteTime = $recordedAt
}
)
$files | New-ConsoleTable -Property Name, Length, LastWriteTime `
-Presentation @{ TimeZone = [TimeZoneInfo]::Utc } |
Export-ConsoleFrame -Format Markdownexport-markdown.ps1 writes its table as Markdown; this is the text it printed.Differences to know
- Display commands are an end of the pipeline. Keep the objects in a variable when later commands need them.
- In a narrow console, columns hide by priority and a footer names them; below 60 cells, rows turn into cards titled with the key value. Format-Table cuts columns off at the edge instead.
- Collections in a cell are joined (
DNS, GC, PDC) with a+Nmarker, where Format-Table shows{DNS, GC, PDC}. - Without
-Property, an object's default display property set is used, as in Format-Table.
Build artifacts · 4 records Module 2 Orion-2.0.0.zip Size 2.77 MB Built in 12 s Signed ✓ yes Path D:\Builds\Orion\Packed\Orion-2.0.0.zip Docs.zip Size 50.1 KB Built in 1.2 s Signed – no Path D:\Builds\Orion\Packed\Docs.zip NuGet 2 Orion.2.0.0.nupkg Size 1.41 MB Built in 48 s Signed ✓ yes Path D:\Builds\Orion\Packed\Orion.2.0.0.nupkg Orion.2.0.0.snupkg Size 393 KB Built in 3.1 s Signed ✓ yes Path D:\Builds\Orion\Packed\Orion.2.0.0.snupkg Total Size 4.62 MB Built in 1 m 04 s
format-consoletable.ps1, the second script at the top of this page, in a 56-column console.Next
- Everyday PowerShell output: turn the formatting on for every session.
- Tables: each table behaviour at six widths.
- Everyday formatting reference: every built-in view and how Format-* parameters map.
- All migration guides.