Automate process to run Postman tests using Jenkins

Hello Experts,

We are looking to Run the postman automated tests from Jenkins using Newman command.
I am thinking to create a powershell script to get the collection UID using the GetApi method but is there a way to get the UID based on Collection Name ? GET Single Collection API has the capability to use with collection Unique Id only but not using collection name. Does Unique Id gets updated if there is an update to collection? Has anyone already automated the process using powershell or any other script that they can share ?


I think I kind of figured this out with a power shell script.If you have any better ideas please share.