In PowerShell, it's possible to index into a string the same way as we select elements from an array. Consider the following example:
$myString = 'abcdefghijklmnopqrstuvwxyz' $myString[0] # This is a (the first character in the string) $myString[-1] # This is z (the last character in the string)