Under Settings > Accounts > Sign-in Options > enable "Automatically save my restartable apps and restart them when I sign back in". Most apps since Windows 7 register their current documents, workspace, etc. with Windows when they launch, and can then be reopened on next boot with the same context. If they don't support that API, Windows will just remember the command line and relaunch it.
I use this for a work computer that I shut down daily and it restores everything I had open: browser windows & tabs, email, Visual Studio solutions, PyCharm workspaces, Windows Explorer windows, Slack, etc. And update restarts use this mechanism specifically.
Now here is to hope That the next "fix" from windows does not push an update that consistent blue screens my PC [1] which is why i prefer to reject all patches.
I use this for a work computer that I shut down daily and it restores everything I had open: browser windows & tabs, email, Visual Studio solutions, PyCharm workspaces, Windows Explorer windows, Slack, etc. And update restarts use this mechanism specifically.