Powershell Convert Object Into An Array Definition Java