In many ways, PowerShell is different (as a language) than other traditional programming languages. Some of PowerShell's peculiarities will be presented in this chapter, as well as some guidance on how to avoid common pitfalls. Here are the topics we'll cover in this chapter:
In PowerShell, either double quotes or single quotes can be used to express string literals. For instance, the following values are the same:
"HELLO WORLD" 'HELLO WORLD'
Using both kinds of quotes can be useful when quoting strings which themselves contain quotes, such as the following:
"I can't stop ...