I got pointed to the Windows 11 check script on here when I was looking for a way to get PDQ Inventory to report on Windows 11 readiness. However I notice some parts of it have been written in what seems like a strange manner compared to Windows PowerShell 5.1 which comes with Windows 10.
I was wondering if this was because the script was written specifically to be compatible with older versions of PowerShell?