Rename Intune managed iPhones and iPads that was enrolled with Apple Business Manager.
The script will connect to Microsoft Graph API and get all iOS devices that are supervised. Line 30 can be hashed out to run in test mode to confrim the devices that will be renamed.