Powershell Convert Object Into An Array Using Factors