Powershell Function Not Returning Array