Public/Show-Warning.ps1

function Show-Warning
{
    <#
        .SYNOPSIS
            Shows a warning message.
        .DESCRIPTION
            Shows a warning 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-Warning -Message "This is a warning"
 
            Description
            -----------
            This example will show the warning "This is a warning".
        .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", "Warning")
    Show-Message @PSBoundParameters
}