PowerShell Trick: Playing with ASCII and Alphabets

PowerShell Trick

Query: Hey! do you have an option to print Alphabets using PowerShell?

Answer: Yep! It's possible - Easy to do!!!

Method 1: Do as you wish ?


$alphabets = @()
65..90 | Foreach-Object {[char]$_}
$alphabets

Method 2: PowerShell has infinite ways to do this [Rocking PowerShell Method] Just One Liner


65..90| %{[char]$_}

PowerShell is smart way to give solutions to our needs at no cost!!!