Issue with dynamic cmdlets in external module

Hi Guys,

Fist post: First of all I would like to say, thank you for this amazing project!
It is basically the thing we were looking for for years!

However, I’m experiencing two problems when building a new dashboard:

  1. To import a module for usages in all endpoints, I was trying to use:
    Doesn’t work:
    $Initialization = New-UDEndpointInitialization -module “Autotask”
    Does work:
    $Initialization = New-UDEndpointInitialization
    $Initialization.ImportPSModule(“Autotask”)
    So, at least we have a workaround now.

  2. We try to use a special module called Autotask. It logs in to our SaaS platform on Autotask, gets all SOAP API options and wraps them in dynamically created powershell cmdlets…!
    That means that I have to load the ‘connect and create cmdlets’-function in every endpoint I’m using, or else I’ll get an error “The term ‘Get-AtwsAccount’ is not recognized as the name of a cmdlet…”.
    Loading the ‘Connect-AutotaskWebAPI -Credential $Credential’ to create the dynamically created cmdlets makes the Dashboard unefficient and incredibly slow.

Anyone got an idea how we could work around this?
Thanks!