Powershell to get list of hosts

I want to use PowerShell to query CheckMK to get a list of hostname that would display on the webpage when doing a ‘Host Search’ webpage click.

Currently I go to the webpage and select all (Ctrl-A) then copy and paste results in a text file and then parse the file to extract to hostname.