Public/Get-Emote.ps1
function Get-Emote { <# .DESCRIPTION Get a KaoMoji emote in Powershell .Parameter Name Name of the Kaomoji to write .Example Get-Emote -Name Flip .Link https://github.com/TheTaylorLee/AdminToolbox #> [CmdletBinding()] [Alias('Emote')] param( [Parameter(Position = 0, Mandatory = $true)] [ValidateSet('Shrug', 'Flip', 'DoubleFlip', 'Sunglasses', 'Fight', 'Success')] $Name ) $OutputEncoding = [System.Text.Encoding]::unicode switch ($Name) { { $_ -like "Shrug*" } { return $([char[]](0xAF, 0x5C, 0x5F, 0x28, 0x30C4, 0x29, 0x5F, 0x2F, 0xAF)) -join "" } { $_ -like "Flip*" } { return $([char[]](0x28, 0x256F, 0xB0, 0x25A1, 0xB0, 0xFF09, 0x256F, 0xFE35, 0x253B, 0x2501, 0x2501, 0x253B)) -join "" } { $_ -like "DoubleFlip*" } { return $([char[]](0x253B, 0x2501, 0x2501, 0x253B, 0xFE35, 0x20, 0x5C, 0x28, 0xB0, 0x25A1, 0xB0, 0x29, 0x2F, 0x20, 0xFE35, 0x20, 0x253B, 0x2501, 0x2501, 0x253B)) -join "" } { $_ -like "Sunglasses*" } { return $([char[]](0x28, 0x20, 0x2022, 0x5F, 0x2022, 0x29, 0x20, 0x28, 0x20, 0x2022, 0x5F, 0x2022, 0x29, 0x3E, 0x2310, 0x25A0, 0x2D, 0x25A0, 0x20, 0x28, 0x2310, 0x25A0, 0x5F, 0x25A0, 0x29)) -join "" } { $_ -like "Fight*" } { return $([char[]](0x28, 0xE07, 0x2022, 0x5F, 0x2022, 0x29, 0xE07)) -join "" } } } |