Public/Set-GitHubCommandEcho.ps1

function Set-GitHubCommandEcho {
    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter(Mandatory)]
        [ValidateSet('On', 'Off')]
        [string] $Mode
    )

    if ($PSCmdlet.ShouldProcess($Mode, 'Set GitHub Actions command echo mode')) {
        Write-GitHubWorkflowCommandInternal -Command 'echo' -Message $Mode.ToLowerInvariant()
    }
}