Understanding PowerShell 7 and Windows PowerShell
The key to understanding how we can use PowerShell 7 on Windows is to understand that PowerShell 7 is built on a fundamentally different platform; PowerShell 7 is built on an open source, stripped-down version of .NET, whereas Windows PowerShell is built on the full proprietary .NET Framework. This means that Windows PowerShell has a greater degree of native compatibility with the Windows operating system and many of the applications that run on it and can make use of elements of .NET Framework that are not accessible to PowerShell 7. Microsoft uses the terminology Desktop edition for PowerShell running on .NET Framework, and Core edition for PowerShell running on open source .NET.
In Chapter 11, Creating Our First Module, we learned that most PowerShell functionality comes from using extensible libraries called modules, and looked at how modules are put together. To run a command in a module, PowerShell must first load that module...