Welcome to a guest installment of the Hello World in Every Language series. I'm Devin Leaman, otherwise known as Alcha, and I'll be covering Hello World in PowerShell, a language that appeared in 2006.\n\n\n\n\n\nPowerShell Background\n\n\n\nPowerShell is the de facto scripting language for managing Windows machines\/servers. Microsoft has made it quite clear that PowerShell is here to stay and will become the preferred way to manage Windows servers in the future.\n\n\n\nJeffrey Snover is largely credited as the designer behind the language, while Bruce Payette and James Truher were also on the project, and in an interview in 2017, Snover explained the motivation behind creating PowerShell:\n\n\n\nI'd been driving a bunch of managing changes, and then I originally took the UNIX tools and made them available on Windows, and then it just didn't work. Right? Because there's a core architectural difference between Windows and Linux. On Linux, everything's an ASCII text file, so anything that can manipulate that is a managing tool. AWK, grep, sed? Happy days!I brought those tools available on Windows, and then they didn't help manage Windows because in Windows, everything's an API that returns structured data. So, that didn't help. [...] I came up with this idea of PowerShell, and I said, "Hey, we can do this better."\n\n\n\nOriginally, PowerShell was to be called Monad and it's ideas were published in a white paper titled Monad Manifesto. Shortly after releasing the Beta 3 version Microsoft formally renamed Monad to Windows PowerShell, followed by the release candidate 1 version.\n\n\n\nPowerShell is now up to version 5.1 for stable builds and the new 6.0 version which was announced in 2016 is in public beta. The largest change in this version is it's now open-source and will now be called PowerShell Core as it runs on .NET Core as opposed to the .NET Framework which previous versions use.\n\n\n\nHello World in PowerShell\n\n\n\nEnough background, let's actually get something working ?\n\n\n\nWrite-Host 'Hello, World!'\n\n\n\nTo execute this code, open a PowerShell console on any Windows machine as it comes installed by default. You'll see the reply output in the window like so:\n\n\n\n\n\n\n\nAs is the case with most modern scripting languages, getting a Hello World sample running is really easy.\n\n\n\nHow to Run the Solution\n\n\n\nInstead of running the commands directly within the console though, write your scripts in a file and call the file when necessary. Download a copy of the Hello-World.ps1 file from the repository and open a console.\n\n\n\nNow, navigate to wherever you downloaded the script and execute it by calling it like so:\n\n\n\n.\\Hello-World.ps1\n\n\n\nThis calls the script and returns the output to the console:\n\n\n\n\n\n\n\nSample Programs in Every Language\n\n\n\nWell, there you have it, Hello World in PowerShell. If you liked this article, don't forget to give it a share, and if you're interested in contributing, check out the Sample Programs repository. Until next time!