PoshRSJob
Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console and allowing throttling on the jobs.
Install / Use
/learn @proxb/PoshRSJobREADME
PoshRSJob 1.7.4.4
Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console.
Be sure to check out and contribute to the Wiki!
Download and install PoshRSJob from the PowerShellGallery using PowerShell:
Install-Module -Name PoshRSJob
Download the latest release (1.7.4.4)
https://github.com/proxb/PoshRSJob/releases/download/1.7.4.4/PoshRSJob.zip
More information and examples here: http://learn-powershell.net/2015/04/19/latest-updates-to-poshrsjob/
Older post with some legacy examples found here: http://learn-powershell.net/2015/03/31/introducing-poshrsjob-as-an-alternative-to-powershell-jobs/
Now working on Linux/MacOS with PowerShell Core!

Examples
=================
$Test = 'test'
$Something = 1..10
1..5|start-rsjob -Name {$_} -ScriptBlock {
[pscustomobject]@{
Result=($_*2)
Test=$Using:Test
Something=$Using:Something
}
}
Get-RSjob | Receive-RSJob

This shows the streaming aspect with Wait-RSJob
1..10|Start-RSJob {
if (1 -BAND $_){
"First ($_)"
}Else{
Start-sleep -seconds 2
"Last ($_)"
}
}|Wait-RSJob|Receive-RSJob|ForEach{"I am $($_)"}

Nano Support for PoshRSJob

Related Skills
node-connect
341.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.5kCommit, push, and open a PR
