powershell run a job code example
Example: Powershell start Job
#Powershell
$Param1 = "Hello"
$Param2 = "World"
$Job = Start-Job -ScriptBlock {
param(
$FirstWord,
$SecondWord
)
Write-Host "$FirstWord $SecondWord"
} -ArgumentList $Param1, $Param2
Receive-Job -Job $Job -Wait