How to save all Postman respons pages automatically?

In Okta we have 2000 applications.
In Postman i run api “{{url}}/api/v1/apps?limit=200” and save the response to file
Then i run: “{{url}}/api/v1/apps?after= &limit=200” ten times to get all the output pages.

How can i avoid the manual actions ? Maybe using cURL in some way ?

Thanks,
Pjotrb.

You could use the collection runner in Postman but perhaps better to build a pagination loop script: