Powershell Function Returns Array In Cpp