Both Windows 10 and Windows 11 have a bug that causes your PC to restart when you choose the Update and shut down option.
Windows 11 auto-updates DirectX via Windows Update—you're likely already on the latest version. To force an update, open Windows Update in the Windows 11 Settings app and click "Check for Updates." ...