Powershell Pass Variable Between Functions In R Programming