Thanks for sharing this!
One item I found to be not documented (or maybe I missed it) was that if you do not have...
- PowerShell v3.0 or higher
- The Graphite-Powershell module from here
...this doesn't work.
Once you have those in place, however, this works like a charm!