Working interactively with PowerShell
PowerShell is, in my experience, unusual for a programming language, in that the huge number of cmdlets available make it particularly suitable for interactive use; open a terminal, type a line of code, and see something exciting happen. It is pretty difficult to do this in other interpreted languages, such as Python, because Python doesn’t come with many bundled commands, and it is difficult to import libraries into interactive sessions. Because of this, Python users very quickly move on to writing scripts. In the 10 years I have worked with PowerShell, I’ve found many of my colleagues never really progress from interactive PowerShell, and that’s fine. In the rest of this chapter, we’re going to recap how we’ve been using PowerShell, and Windows users can get to install a really useful utility called Windows Terminal, which will give them the same multi-tabbed terminal experience that Linux and macOS users can...