It sounds like Windows automatic restart after updating. If you want to avoid this behavior, follow these steps:
1. Click on the “Start” button and type
gpedit.msc
press Enter.
2. In the Local Group Policy Editor, go to
Computer Configuration ->
->Administrative Templates->
-> Windows Components->
-> Windows Update
3. Double-click on “No auto-restart with automatic installations of scheduled updates”.
4. Select “Enabled”, and then click “OK”.
5. Close the local group policy editor.
Hope this helps