How to add OME Discovery Ranges remotely

I don't ever want to have to launch a web browser to add a host into OME. There are some powershell cmdlets to do this, but they require a snapin only present on the OME server. Powershell Remoting can work around this. Here is the code; just replace the variables up top.