When to Quote in PowerShell
Posted by: Simple Talk,
on 12 Aug 2015 |
View original | Bookmarked: 0 time(s)
The one question about PowerShell that trips up almost everyone is about when and how to quote strings. Because PowerShell replaces the old command shell, it has to be able to work the way that it did with string parameters, but it also has to behave like a .Net scripting language to replace VBA. PowerShell grapples with this apparent contradiction, and manages to square the circle. Michael Sorens explains the how and when of PowerShell quoting....