Creating Scripts For Powershell Array Of Objects