Powershell Function Not Returning Array In Function