I didn’t do this in a pre-request script, but you certainly could adapt it to do so:

I used the Postman API to load the collection details then grabbed the name of all the requests.
I didn’t do this in a pre-request script, but you certainly could adapt it to do so:

I used the Postman API to load the collection details then grabbed the name of all the requests.