Sentry One powershell module throws license exception

We have this scrpt to view existing sites and add a new target to the site you high lite in the out-gridview.

 $MyDocuments = [Environment]::GetFolderPath("MyDocuments")

Import-Module "$MyDocuments\sentryone\client\MyServer\MyConnection\SentryOne\bin\Intercerve.SQLSentry.Powershell.psd1"

$site = Get-Site |Out-GridView -PassThru
Register-Connection -ConnectionType SqlServer -Name "$ServerName\$InstanceName"  -UseIntegratedSecurity $true -TargetSite $site | Invoke-WatchConnection
After the latest update we get this error:
Get-Site : The type initializer for 'SentryOne.Licensing.SolarWinds.SqlLicenseStoreStorageProvider' threw an exception.
We used the powershell module from the client insalled by EPI.
Any ideas how to solve this?
//Pär