write-in-emojis
Writes text in Emojis
#Requires -Version 5.1
param([string]$text = "")
try {
if ($text -eq "") { $text = Read-Host "Enter the text" }
$table = Import-CSV "$PSScriptRoot/data/emojis.csv"
foreach($row in $table) {
$text = $text -Replace "\s?$($row.WORD)\s?","$($row.EMOJI)️"
}
Write-Output $text
exit 0
} catch {
throw
}Specifies the text