Cleary, you didn't actually read the blog post ... it mentions nothing about checking all VMs. Please give it another read as the answer or your question is literally explained there.
Furthermore, its EXACTLY these types of use cases where Automation and the use of vSphere API is meant to help to search for various types of information and does not impact your workloads, especially when you look for specific things rather than returning the full VM configuration.