Windows Developers Prefer PowerShell as CLI – Visual Studio Magazine


Windows developers prefer PowerShell as CLI

The Windows Dev Docs team on Twitter recently posted an informal poll asking, “Well? What’s your favorite command line?” the choices being Windows cmd Command Prompt, PowerShell, WSL Bash, and Azure Cloud Shell.

With 314 votes, the results are in: it’s PowerShell, with 45.2% of the votes, followed by cmd (37.6%), WSL Bash (15.6%) and Azure Cloud Shell (1.6%) .

Twitter poll
[Click on image for larger view.] Twitter poll (source: Twitter).

Here are some developer comments on the issue:

  • Open WindowsTerminal in administrator mode with Powershell, CMD, Bash and CloudShell 😎✅🚀🤘
  • cmd because powershell is getting slower and bash WSL
  • honestly cmd; Like I’d love to say powershell but I’ve been using cmd for support since the 90s
  • It’s always cmd. Even changed the defaults.
  • It really depends on what I plan to do. That’s why Windows Terminal has a context menu when you pin it.

So one wonders what’s going on with Azure Cloud Shell (different from Azure CLI), which was apparently the preferred choice of only five developers. It’s not like it’s old, having debuted in 2017. Interestingly, Microsoft’s documentation says it simply allows developers to use one of two other survey options: “Azure Cloud Shell is an interactive, authenticated, browser-based shell for managing Azure resources that provides the flexibility to choose the shell experience that best suits the way you work, whether it’s Bash or PowerShell.”

Choice of direct access to the link
[Click on image for larger view.] Choice of direct access to the link (source: Microsoft).

In fact, when accessing Azure Cloud Shell via a direct link, a user should immediately choose one or the other, as shown above.

Which one to choose ? The MSP360 explains the differences in an article titled “Azure CLI vs PowerShell: What’s the difference?” »

“PowerShell is a command shell and associated scripting language for the majority of Windows operating systems,” the article says. “Bash is a Unix shell and scripting language for most Linux operating systems. The first version of PowerShell was introduced in 2006. The Bash shell appeared in 1989. PowerShell treats input and output as objects , while Bash always accepts input and output as text structures. PowerShell UI is a command-line interface; Bash’s is a text-based command-line interface. PowerShell can be used on n any version of Windows starting from Windows 97. Bash is mainly used with Linux and Unix operating systems. PowerShell is a scripting language based on .NET framework and C# programming language while Bash is a scripting language based on the C programming language.”

Main Differences Between Bash and PowerShell
[Click on image for larger view.] Main Differences Between Bash and PowerShell (source:

For more information, the LinuxConfig earlier this year published an article titled “Bash scripting vs PowerShell” which has the handy comparison table above.

“In summary, Bash is ideal for administration and automation on Linux, and PowerShell fills the same gap, but on Windows systems,” the article concludes. “They both have some crossover, but are at their peak on their native systems.”

About the Author

David Ramel is an editor and writer for Converge360.

Comments are closed.