New-PSUScript -Module -Command not showing parameters

Product: PowerShell Universal
Version: 4.2.20

I created a module with functions to expose as a script using New-PSUScript with Module/Command. The function executes as expected but the parameters are not shown on the run screen but does prompt for each one after the fact while running one by one. Copying and pasting the same code to a dedicated ps1 without the function block has the parameters shown as expected. Below is a sample line that does not seem to work as intended. Am I missing something?

New-PSUScript -Description "New Account" -Module 'PSUFunctions' -Command 'New-PSUADStaff' -Environment "Dev" -Tag @('Staff','Account')

Thanks.

1 Like