Public/Slack/Channel/Get-SlackChannel.ps1

function Get-TelegramChannel {


    [CmdletBinding()]
    param (
         [Parameter(Mandatory = $true)][string]$Name        # Give the channel a name, this is the "identifier for this channel"
    )

    begin {

    }

    process {

        # Check if the telegram channel exists
        $channel = $null
        Get-Channel -Name $Name | Where-Object { $_.Type -eq "Slack" } | ForEach-Object {
            $channel = $_
        }

        If ( $channel -eq $null ) {
            throw "Channel $( $Name ) not found!"
        }

        $channel

    }

    end {

    }

}