Public/Invoke-AnyStackReport.ps1

function Invoke-AnyStackReport {
    <#
    .SYNOPSIS
        Invoke-AnyStackReport - A specialized AnyStack Enterprise tool.
    .DESCRIPTION
        Autogenerated production cmdlet for AnyStack.Reporting.
    #>

    [CmdletBinding(SupportsShouldProcess=$true)]
    param(
        [Parameter(Mandatory=$true)] [string]$Server
    )
    process {
        $ErrorActionPreference = 'Stop'
        if ($PSCmdlet.ShouldProcess($Server, "Invoke-AnyStackReport")) {
            try {
                Write-Host "[ANYSTACK] Running Invoke-AnyStackReport on server $Server" -ForegroundColor Cyan
            } catch {
                Write-Error "Failed to execute Invoke-AnyStackReport: $$($_.Exception.Message)"
            }
        }
    }
}