I have followed all steps, but when the script runs it keeps saying: "Precentage Encrypted 0%." and the Autopilot will timeout. This is on a Microsoft Surface device (Surface Laptop 5).
Also I tried to run the PowerShell command Clear-Tpm at the beginning of the script but it didn't make any difference.
Great job btw, thanks for all your work!