Working with Strings
Although we’ve used strings in some previous examples, we haven’t really talked about what exactly a string is and isn’t. A string is a series of alphanumeric or non-alphanumeric characters. PowerShell has several parsing rules for strings, and these rules modify the way values are handled. You need a good understanding of how strings are parsed to be successful with PowerShell, whether you enter commands at the PowerShell prompt or use PowerShell scripts.
Single-Quoted and Double-Quoted Strings
You use quotation marks to denote the beginning and ending of literal string expressions. You can enclose strings in single quotation marks (‘ ’) or double quotation marks (" "). However, PowerShell parses values within single-quoted ...