Skip to content

Instantly share code, notes, and snippets.

@rolambert
Created July 15, 2020 15:04
Show Gist options
  • Save rolambert/7ca4cfac526e53c851017979b75ed3eb to your computer and use it in GitHub Desktop.
Save rolambert/7ca4cfac526e53c851017979b75ed3eb to your computer and use it in GitHub Desktop.
$a1 = @(1,2,3,4,5)
$b1 = "'This is string number'"
$Scriptblock = @"
`$Array = @(1,2,3,4,5)
`$String = $b1
foreach(`$f in `$Array){ write-host "`$String `$f"}
start-sleep 10
write-host pasta
start-sleep 10
"@
$scriptBlock = [Scriptblock]::Create($Scriptblock)
Start-Process Powershell -ArgumentList $Scriptblock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment