Hey @theboulderguy
Welcome to the Postman Community
The code from this post could be adjusted and used for your scenario: