Looking up InfoBlox with PowerShell

I’m not the administrator for InfoBlox in my organisation. But simply an InfoBlox user.
I recently had a requirement to get host details from InfoBlxo for some automation I was writing. So came up with the following function to return a host’s ip details.