1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
1..3 | %{ $codigo = 'using assembly System.Windows.Forms using namespace System.Windows.Forms $Form = New-Object System.Windows.Forms.Form $Form.Text='+$_+' $Form.Size=New-Object System.Drawing.Size(500,500) $Form.StartPosition=\"CenterScreen\" $Form.ShowDialog()' Start-Job -ArgumentList $codigo -ScriptBlock { param($codigo) powershell -command "$codigo" } } |