Create array, loop through queries, export

Create an array while looping through queries (based on dates in this example) then export the array into a CSV file.