proxb / 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.
MIT License
541 stars 87 forks source link

Wait-RSJob - Add Parameters to execute code every N cycles #210

Open jeffchulg opened 4 years ago

jeffchulg commented 4 years ago

Do you want to request a feature or report a bug? Feature

What is the current behavior? No dynamic code can be executed during Wait-RSJob execution

What is the expected behavior?

Provide two parameters to Wait-RSJob : -Batch and -BatchExecutionCycleCount so that, everytime a wait-loop iteration is performed, it checks if it's in the $BatchExectionCycleCount and if so, it would execute the code in $Batch