You used the completly wrong tag "openspec" = Open Specifications, has noth to do with SQL Server.
That's a more a Windows issue, check the registry setting mention under "Pending Reboot Flags are in the Registry" at
https://adamtheautomator.com/pending-reboot-registry/