diff --git a/Snippets/Run a Job in the Background and Stream Output to Host.ps1 b/Snippets/Run a Job in the Background and Stream Output to Host.ps1 index 04586f3..756ea4b 100644 --- a/Snippets/Run a Job in the Background and Stream Output to Host.ps1 +++ b/Snippets/Run a Job in the Background and Stream Output to Host.ps1 @@ -4,3 +4,4 @@ $Job = Start-ThreadJob -ScriptBlock { ForEach-Object { Start-Sleep -ms 200; $_ } | oss | Write-Host } -StreamingHost $Host +Get-Job $Job