Hi, @Oliver Fung
Thank you for posting in Microsoft Q&A forum.
Starting in version 2006, we can configure client settings to prevent devices from automatically restarting when a deployment requires it.
We can set "Configuration Manager can force a device to restart" to "No".
https://learn.microsoft.com/en-us/mem/configmgr/core/clients/deploy/device-restart-notifications#configuration-manager-can-force-a-device-to-restart
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.