Format-Table: Add ForegroundColor and BackgroundColor to a calculated property
When using calculated properties in Format-Table, you can define:
- Name/Label (the column heading/calculated property name)
- Width (define column width)
- FormatString (to format numbers/strings)
- Alignment (alignment in table cell/column
What's missing is a way to output a calculated property in a different color. For example, use red for negative number, green for positive number, and additionally, a way to specify the background color (for the table cell). Adding ForegroundColor (to specify text color) and BackgroundColor (for cell color) to calculated properties would resolve this.