Hiding function names in the "Function To Run" dropdown in an Automation Workflow

I found something interesting that I wanted to share.

I was writing a script module and, using good coding practices, I broke it out into several functions.

This worked, and was fine, but when I went to configure it in an Active Roles Automation Workflow, the "Function to Run" dropdown was very busy.

I found that I was able to able to hide functions from this dropdown by changing how the functions were declared.

A standard declaration looks like this:

function FunctionToRun($StringValue)

{

...

}

The modified declaration looks like this:

function hiddenFunction
{
param
(
    [string]$StringValue
);
...
}

I have seven functions in my Script Module, and the only one that is visible in the "Function To Run" dropdown is the one that I want: