Powershell Function Not Returning To Work