Powershell Function Returns System Objects