3 WWPD: What would PowerShell do?
Before we dive in, let’s have a quick conversation about the “right way” to do things in PowerShell. One of PowerShell’s advantages—and one of its biggest disadvantages—is that it’s pretty happy to let you take a variety of approaches when you code. If you come from a VBScript background, PowerShell will let you write scripts that look a lot like VBScript. If you’re a C# person, PowerShell will happily run scripts that strongly resemble C#. But PowerShell is neither VBScript nor C#; if you want to take advantage of PowerShell and let it do as much heavy lifting for you as possible, you must understand the PowerShell way of doing things. We’ll harp on this a lot in this book, starting here. But it’s also important ...
Get Learn PowerShell Scripting in a Month of Lunches, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.