Hey @oasis, how are you running the collection?
This should work fine in Runner https://learning.postman.com/docs/running-collections/intro-to-collection-runs/ or by using newman on CLI .
Also, for setTimeout()
- you would need to explicitly use setInterval for it to work, check out these resources:
Cheers