Hi Hafiz,
try booting machine in Safe mode by pressing F8. or try Last known good configuration.
Also check if any task schduler is schduled which restart your machine.
Hope you have checked basic step, Hardware/power cable loose, Antivirus is updated, windows is updated. or no any other erros.
Please close the thread by accepting as answer if it does help, please let us know if you any questions.