Dynamic Offset?

by Feb 7, 2020

Novice user… Please type slowly and use small words. 

I am running using Powershell ISE to pull results from my online database. For a particular response,there are approximately 6000 results, but I can only pull 50 at a time (limit set within database).

How do I get a count, tell it to print the first 50 responses to file and then loop back to get the next 50 until it runs out of objects to retrieve?

Beyond not scripting the request correctly, I am obviously using the incorrect language to FIND the assistance I need.  In my head it's a Dynamic Off-set based on a Count… I have been digging through PW get-help and good-ol-google for weeks.  I'm stuck. Please help?