Powershell Function Returns Object Array Creation