Public/Show-Success.ps1

function Show-Success
{
    <#
        .SYNOPSIS
            Shows a success message.
        .DESCRIPTION
            Shows a success message to the console.
        .PARAMETER Message
            A string containing the message to show.
        .PARAMETER Width
            An integer specifying the width of the message.
        .PARAMETER PaddingLeft
            An integer specifying the left padding of the message.
        .PARAMETER PaddingRight
            An integer specifying the right padding of the message.
        .EXAMPLE
            Show-Success -Message "Completed successfully"
 
            Description
            -----------
            This example will show the success "Completed successfully".
        .NOTES
        .LINK
            Show-Message
    #>

    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [ValidateNotNullOrEmpty()]
        [string] $Message,
        [Parameter(Mandatory = $false)]
        [int] $Width,
        [Parameter(Mandatory = $false)]
        [int] $PaddingLeft,
        [Parameter(Mandatory = $false)]
        [int] $PaddingRight
    )
    
    $PSBoundParameters.Add("Type", "Success")
    Show-Message @PSBoundParameters
}