Hi Hendrik,
What is the result of $global:CurrentNaController.GetConnectionType()? If it is UNKNOWN, please verify the user has permission to run ONTAPI license-list-info and vfiler-list-info (easiest way to do this is probably to try Get-NaLicense and Get-NaVfiler).
-Steven