Both Windows 10 and Windows 11 have a bug that causes your PC to restart when you choose the Update and shut down option.
The fix is arriving through the optional KB5067036 update for Windows 11 25H2, which Microsoft began rolling out last week.
Microsoft has confirmed that it's testing a fix in the latest Windows 11 preview builds that is supposed to address a long standing bug with Windows Update, where the "update and shut down" option ...