Get ink level from HP printers in Powershell

I've find a way to get details about cardrige on low end hp printer !
Get it on my Git ! HP Snippet

$Web = New-object System.Net.WebClient
[xml]$stringprinter = $Web.DownloadString("http://printerhp/DevMgmt/ConsumableConfigDyn.xml")
$stringprinter.ConsumableConfigDyn.ConsumableInfo | Select ConsumableLabelCode,ConsumablePercentageLevelRemaining