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
Get-hello
}
Module
function Get-hello {
return "Hello world"
}