Powershell Foreach Object Return Array From A Function