Error calling module from New-PSUEndpoint

Product: PowerShell Universal
Version: 2.12.2

I am running into a weird issue where I am trying to call a custom module via an API/endpoint and its not really working. I have validated that the endpoint is loading the module as im able to see it via get-module but im not able to call any of the cmdlets in the module.

New-PSUEndpoint -Url "/error"  -Method "GET" -Endpoint {
    #requires -modules MyModule
    Connect-PSUServer -ComputerName $Hostname -AppToken $AdminAppToken


function Get-hello {
    return "Hello world"


FYI: It seems to work on 3.0.1…