Powershell Pass Variable Between Functions In Cpp