How to download file while running collection runner?

It will only write one file if you run it on a collection with a single request.