title: Powershell Start-Process to start Powershell session and pass local variables
body: <p>Is there a way to use the Powershell Start-Process cmdlet to start a new Powershell session and pass a scriptblock with local variables (once of which will be an array)?</p>
  
  <p>Example:</p>
  
  <pre><code>$Array = @(1,2,3,4)
  
  $String = "This is string number"
  
  $Scriptblock = {$Array | ForEach-Object {Write-Host $String $_}}
  
  Start-Process Powershell -ArgumentList "$Scriptblock"
  </code></pre>
  
  <p>Thanks.</p>