Need help building task from list

I have a list of 200,000+ objects
imported as a variable or hashtable whatever that part does not mater much.
I can convert the import to whatever makes most sense.

I would like to create a job for each 10,000 objects until the end of the list.

something like foreach 10,000 of $list
start-job -name job1 {scriptblock}

then next job
start-job -name job2 {scriptblock}

and so on

until end of list.

Hmmm … assumed your question actually is “How to split an array into multiple smaller arrays?” … I used this sentence to search for and got some pretty neat answers. I’d like to encourage you to do it using your favorite internet search engine. I’m sure you will find at least enough examples to get you started. :+1:t4: :love_you_gesture:t4: :slightly_smiling_face: