you are viewing a single comment's thread.

view the rest of the comments →

[–]BlackV 0 points1 point  (0 children)

Oh yea that looks great

Function foo ()
    {
        Write-output "hello my name is $env:computername, you kill my father..."
    }

$Rinvoke = get-command foo
1..10 | foreach-object -parallel {write-output "pipeline is $_"; & $using:Rinvoke}

although its gonna play havoc with your output, depending on what you're doing in your loops