StrReverse
Definition: Returns a string in which the character order of
a specified string is reversed.
How many times have you said to yourself, “Gosh, if only there was a way for me to reverse the character order of a specified string”? That’s what we thought.
Shockingly, Windows PowerShell has no equivalent to VBScript’s StrReversefunction; fortunately, though, we found at least one way to achieve the same effect. The following set of commands (which we won’t bother explaining in any detail) assigns the value Scripting Guysto the variable $a, then uses a For Next loop to reverse the order of the characters in the string: