Asc
Definition: Returns the ANSI character code corresponding to the first letter in a string.
It’s surprising how often scriptersneed to convert a character value (such as the letter A) to its ASCII equivalent (65). In Windows PowerShell you can determine the ASCII value of a character by using this crazy-looking line of code (which takes the character value of the letter Aand then converts the result to a byte value):
$a = [byte ][char] "A"
When you run this command and then echo back the value of $ a youshould get the following:
65