How can I change the column ordering of the output my code produces:
$apps = Import-CSV apps.csv $computers = Import-CSV compobj.csv foreach ($computer in $c
Powershell V3 added a type accelerator for [PSCustomObject] that creates objects using an ordered hash table, so the properties stay in the order they're declared:
[PSCustomObject] @{ Computer=$computer.hostname App=$app.appname Installed=$installed }