Powershell Function Not Returning Back