r/PowerShell • u/KevMar Community Blogger • 1d ago
News Why developers hate PowerShell
https://powershellexplained.com/2026-11-24-why-developers-hate-PowerShell/?utm_medium=post&utm_content=rpowershell&utm_source=redditThis is a post that I have been thinking about writing for a very long time now. I find that developers struggle with PowerShell in a very different way that the sysadmin learning to automate. They bring intuitions and assumptions with them from other languages that catch them off guard when they skip over the documentation. In this article I try to capture some of those experiences and misunderstandings.
I cover a lot of ground in this one: running scripts, execution policy, aliases, objects and formatting, calling functions, output and return values, unrolling, operators, case sensitivity, type conversion, truthiness, strings, scope, automatic variables, paths, encoding, errors, native commands, and classes.
While this one is targeting Software Engineers more then Systems Engineers, I would still appreciate your feedback and stories of your own frustrating experiences.
Thank you, -Kevin
View all comments
Show parent comment
2
u/dodexahedron 1d ago edited 1d ago
There's also the -NoEnumerate switch, which is for exactly that. But using it can also be clunky.
Also, note that passing an array object through the pipeline as input to the next pipeline stage enumerates by default but, if passing that object as an explicitly named parameter (even from the pipeline), it stays an array, always.
Strongly type your parameters and write pipeline-friendly code in the first place (i.e. make use of begin, process, end, and clean as appropriate - including in ad-hoc/ in-line script blocks), and it won't be an issue.