Powershell Function Not Returning Security