I have a small loop in powershell produces an object with 4 elements
PS'>$object
DMC : 5061
Conv : 6.94%
Sales : 351
OptIn : 185
The loop will run twice and produce data for Team A and Team B (and per haps Teams C and D at a later date), I would like to create an output that looks like this, where I can just add columns as I need.
Team A Team B
DMC 5061 5612
CONV 9.62% 6.3%
Sales 351 320
Optin 185 220
I can use | format-table to get output that looks something like this
DMC CONV Sales Optin
Team A
Team B
I have been able to do something similar by directly manipulating Excel as a COM object but it's both massive over kill and doesn't produce what I need.
Ultimately I want to convert the output into HTML and send it as an email body (which I'm able to do if I can get the table into a format I can use).
I feel there is probably a very simple way to do this buty I'm absolutely making no headway.