Powershell Foreach Object Return Array From Function