Powershell Variable Scope Scriptblock