Exercise 3: Windows PowerShell 5.1 vs. PowerShell 7+ — Possible Solution ==================================================================== WHAT $PSVersionTable.PSVersion SHOWS ------------------------------ $PSVersionTable.PSVersion reports the exact version of the PowerShell engine currently running the session - a Major.Minor.Patch value such as 7.4.2 (PowerShell 7) or 5.1.22621 (Windows PowerShell 5.1). It's the direct way to answer "which one am I actually in" instead of guessing from the console window's title bar or icon. THE PRACTICAL DIFFERENCE ------------------------------ Per the chapter, Windows PowerShell 5.1 is built into every modern Windows install, runs on the older .NET Framework, only runs on Windows, and is now in maintenance mode - security fixes only, no new features. PowerShell 7+ is open-source, built on modern .NET, genuinely cross-platform (the same pwsh executable runs on Windows, macOS, and Linux), and is where all active development happens. WHICH ONE THIS COURSE TARGETS, AND WHY ------------------------------ This course targets PowerShell 7+ (the pwsh executable), because it's the actively developed version and the one any new script should be written against. The chapter notes that almost everything shown still works in Windows PowerShell 5.1 unless a later chapter says otherwise, but recommends installing PowerShell 7 fresh rather than relying on whatever 5.1 build already shipped with Windows, since 5.1 will not receive new capabilities going forward. WHY THIS WORKS AS AN ANSWER ------------------------------ It correctly describes what $PSVersionTable.PSVersion reports, names the real differences between the two products (built-in/legacy/Windows-only/maintenance-mode vs. open-source/modern/cross-platform/actively developed), and correctly identifies PowerShell 7+ as this course's own target along with the stated reason (active development).