Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ini='$var="'+$args[0]+'"'
- $a={
- Function Get-add()
- {
- "this is the value of $var"
- }
- }
- start-job -InitializationScript $a -ScriptBlock {param($ini)iex $ini;get-add } -ArgumentList $ini |Wait-Job | Receive-Job
Add Comment
Please, Sign In to add comment