9 A practical interlude
It’s time to put some of your new knowledge to work. In this chapter, we’re not even going to try to teach you anything new. Instead, we’re going to walk you through a detailed example using what you’ve learned. This is an absolutely real-world example: We’re going to set ourselves a task, and then let you follow our thought processes as we figure out how to complete it. This chapter is the epitome of what this book is all about, because instead of just handing you the answer on how to do something, we’re helping you realize that you can teach yourself.
9.1 Defining the task
First of all, we’re assuming that you’re working on any operating system running PowerShell 7.1 or higher. The example we’re going to work through may very well work on earlier versions of Windows PowerShell however we have not tested this.