Powershell Function Returns Array Methods In Cpp