Powershell Pass Variable Between Functions In Sql