PowerShell, finally a real terminal on Windows

PowerShell, finally a real terminal on Windows


The command line is my good friend. Admittedly, it’s a time saver for us programmers and that using a mouse is not always the most effective way of doing things. Working hard on Linux, I enjoy efficient, configurable, scalable and programmable terminals. To me, this was not possible under Windows; but that was before I knew PowerShell.

PowerShell is the new terminal proposed by MicroSoft. It replaces the old cmd which has had its day. The features of the old one are included so you can start using it right now. Moreover it is possible to run Unix commands, and nothing but that’s really awesome.

From a technical point of view, PowerShell embeds the entire .Net platform from Microsoft and puts available all existing objects directly in the console. You can create comprehensive scripts using a platform that is simple to learn and familiar. You can send an email just like you would in C # or VB as follows:

$smtp = New-Object Net.Mail.SmtpClient("mail.serveur.localhost")
$smtp.Send("me", "you", "hug", "love")

Or make your PC talk:

Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
$speak.Speak("Alan Turing is my father")

You can imagine the list of possible things.

It is also important to know that it is possible to run these commands not only locally but also on a remote computer as it can be done via SSH in the Unix world.

I started a small memo on [GitHub] (https://github.com/neoPix/PowerShell) for myself and those who would like to give it a try.