Powershell Pass Variable Between Functions In C