How to find the test runs associated with a build?

Visual studio build summary page shows a lot of information about the build and one of them is about test runs associated with that build. In my work, I had to find out the test run Ids associated with a given build but since the Ids are not exposed in the summary page or logs, it is slightly hard to find if the test runs are not associated with a test plan which was true for my case.

There are a # of articles available on how to find it using one or the other tool (see Tarun’s blog for one example) but I needed something more light-weight. Since these days, I am into power-shell, I quickly coded something and thought of sharing with you all.