I Like Powershell
The author has a few good points. I want to love PS as well, but in practice it has too many gotchas and pitfalls that seem to pop up every time I write a script more than a few lines.<p>Sure, all languages have these, but the ones in PS feel nastier and more subtle than most, compounded by the fact that it&#x27;s not a language I use more than once every few months and should be easy to pick up and put down.<p>Basic stuff like parens, commas, function calls, casting, variable interpolation and arrays are frequently surprising. Many behaviors fail silently.<p>For example, arrays with 1 element behave differently than arrays with 2+ elements. PS is &quot;smart&quot; and treats the 1-element array as a scalar. Why? I&#x27;ve wasted hours dealing with arrays in PowerShell.<p>See this post for a sampling of the problems: <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;69644807&#x2F;6243352" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;69644807&#x2F;6243352</a><p>Even without the gotchas, case insensitivity, optional abbreviations, optional parens, etc, make PS scripts harder to read and debug than they need to be. PS feels like a mashup of many of the most confusing parts of PHP and Perl and adds its own fresh mess on top. Adding parameters and resolving a few of Bash&#x27;s failings isn&#x27;t much of an achievement given ~20 years of time to design it properly. Neither language is as easy to work with as it should be.