ConsoleImage.psm1

<#
.Synopsis
   Loads URL Image
.DESCRIPTION
   Loads URL Image into your powershell console
.EXAMPLE
   Show-OnlineImage -URL "https://upload.wikimedia.org/wikipedia/commons/a/af/PowerShell_Core_6.0_icon.png"
.EXAMPLE
   Show-OnlineImage -URL "https://www.freeiconspng.com/thumbs/powershell-icon/powershell-icon-3.png"
#>

function Show-OnlineImage
{
    [CmdletBinding()]
    Param
    (
        [Parameter(Mandatory=$true,
                   Helpmessage= "Enter the URL to the image you want to view",
                   Position=0)]
        [string]$URL
    )

    Begin
    {
    [System.Console]::OutputEncoding=[System.Text.Encoding]::Utf8
    }
    Process
    {
    [textdisplay.Display]::Show((new-object uri("$URL")))
    }
    End
    {
    }
}


<#
.Synopsis
   Loads local Image
.DESCRIPTION
   Loads a local image into your powershell console
.EXAMPLE
   Show-LocalImage -Path "C:\Pictures\Kitten\cutekitten.png"
.EXAMPLE
   Show-LocalImage -Path "C:\Users\Adz\Documents\HeMan.png"
#>

function Show-LocalImage
{
    [CmdletBinding()]
    Param
    (
        [Parameter(Mandatory=$true,
                   Helpmessage= "Enter the complete path to the image you want to view",
                   Position=0)]
        [string]$Path
    )

    Begin
    {
    [System.Console]::OutputEncoding=[System.Text.Encoding]::Utf8
    }
    Process
    {
    [textdisplay.Display]::Show("$Path")
    }
    End
    {
    }
}