The following code is display the data I want, but it's not aligned nicely. How can I use a data-grid or format-table to align the data?
$response = Invoke-RestMethod @params
foreach ( $row in $response )
{
Write-host "id=$($row.uuid) uuid=$($row.uuid) Subject=$($row.subject) "
}
Example output now:
id=new-template_1 uuid=new-template_1 Subject=Welcome!
id=new-template_3 uuid=new-template_3 Subject=Welcome!
Desired:
id uuid subject
new_template_1 new_template_1 Welcome!
new_template_3 new_template_3 Welcome!