Powershell cmdlet authenticating to Aerohive API
You are writing a powershell commandlet... are you sure you want to hardcode the url?


client.BaseUrl = new Uri("very.long.url/to/authenticate/against");



I think it would be better to provide a parameter for this one too. At least make it optional with a default value if you don't want to type it everythime but hardcoding it - well, I woudn't.

It doesn't take long and you'll find another use for it but then you'll say if I only made a parameter for this :-)