📜  Powershell 启动作业 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:45.194000             🧑  作者: Mango

代码示例1
#Powershell
$Param1 = "Hello"
$Param2 = "World"
$Job = Start-Job -ScriptBlock {
    param(
        $FirstWord,
        $SecondWord
    )
    Write-Host "$FirstWord $SecondWord"
} -ArgumentList $Param1, $Param2

Receive-Job -Job $Job -Wait