"chunking" foreach loops

say I have a list of 100 servers.

if I’m doing something small (say a test-path)

$servers=(get-content servers.txt)
foreach ($s in $servers){
write-host $s
test-path \$s\whatever
}

Then I just let it run.

How would I tell powershell to grab X servers do the loop, and then grab the next x until completed.

I feel like the answer should be simple, but I’m just not seeing it.

I should have kept looking, I found an older topic on here that answered my question:
https://powershell.org/forums/topic/work-an-array-in-batches-of-5/