Write-Vertical
Writes text in vertical direction
param([string]$text = "")
try {
if ($text -eq "" ) { $text = read-host "Enter the text to write" }
[char[]]$TextArray = $text
foreach($Char in $TextArray) {
write-output $Char
}
exit 0 # success
} catch {
"?? ERROR: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
exit 1
}Specifies the text to write