Write-FancyLog.psm1


function Write-FancyLog {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory)]
        [string]$message,
        
        [AllowNull()]
        [AllowEmptyString()]
        [string]$border
    )

    # Process input from the pipeline
    process {
        $internalBorder = "-"
        if ($null -ne $border -and $border -ne "") {
            $internalBorder = $border
        } 

        Write-Host $($internalBorder * $message.length)
        Write-Host $message
        Write-Host $($internalBorder * $message.length)
        Write-Host ""
    }
}

function Write-AsciiMessage {
    [CmdletBinding()]
    param ()

    # Process input from the pipeline
    process {
        $longString = @"
     __ ___ ______ __ .___ ___. _______ ______
    | |/ / / __ \ | | | \/ | | ____| / __ \
    | ' / | | | | | | | \ / | | |__ | | | |
    | < | | | | | | | |\/| | | __| | | | |
    | . \ | |__| | | '---- | | | | | |____ | |__| |
    |__|\__\ \______/ |_______||__| |__| |_______| \______/
 
"@

Write-Host $longString -ForegroundColor Green

        
    }
}

Export-ModuleMember -Function Write-FancyLog, Write-AsciiMessage