Alongside the official Microsoft version, the community version is now available in the PowerShell Gallery.
This is a community effort, please fork, submit improvements, issues, pull requests, anything!
https://www.powershellgallery.com/packages/get-windowsautopilotinfocommunity/1.0.0
https://www.powershellgallery.com/packages/WindowsAutopilotIntuneCommunity/1.0
To download on a machine, run this command (change the path as required)
Invoke-RestMethod -Uri https://raw.githubusercontent.com/andrew-s-taylor/WindowsAutopilotInfo/main/get-windowsautopilotinfo.ps1 -OutFile c:\temp\get-windowsautopilotinfo.ps1
To install the module, run the install-script-and-module file