Formatting/WindowsTerminalProfileControl.format.ps1
Write-FormatControl -Name WindowsTerminalProfileControl -Action { @( $wtProf = $_ if ($wtProf.Guid) { $wtCoreProps = 'Name','CommandLine','GUID', 'Source' $wtProf | Select-Object $wtCoreProps | Format-Table -HideTableHeaders -AutoSize | Out-String $wtOther = $wtProf | Select-Object -Property * -ExcludeProperty $wtCoreProps if (@($wtOther.psobject.properties).Length -ge 1) { $wtOther | Format-List | Out-String } } ) -join '' } |