You need the two requests in your collection.
Your initial request to get all of the hotels with the code that you currently have.
The end result should be an environment variable with an array of hotels ID’s.
On your second request, you will need to retrieve this variable in the pre-request script. (Remember to JSON parse when retrieving the variable).
You will need to use the Postman setNextRequest function to keep looping on the same request while the array is larger than zero.
To do this, you will use a method available to arrays called shift() which will take the first element of the array, and then delete it from the array.
Part 2 is not possible directly in the Postman sandbox as you have very limited access to the local file system. You can either send the data after the loop finishes to a third party system like SharePoint via another API, or you can use the Postman node.JS libraries (which will mean you need to have a good knowledge of JavaScript and node).
Have a look here for a working example of using setNextRequest that you can tailor to your requirements.
setNextRequest example does not work - Ask the Experts and Postman Tips - Postman Community