2024-10-17 09:36:15 +02:00
|
|
|
# This is a template for multi-threaded stuff, or at least it should be...
|
|
|
|
|
2024-10-17 11:02:49 +02:00
|
|
|
# We start a new job and store it in a variable to be able to display said job later by invoking the variable in the Receive-Job cmdlet.
|
|
|
|
$Job = Start-Job -ScriptBlock {Write-Output 'Hello World'}
|
|
|
|
Receive-Job $Job # Will display Hello World in the cmd
|
|
|
|
|
|
|
|
|