Too many possible reasons
Boot into safe mode and test from there - does it shut down ok

Perhaps start by disabling various app’s one at a time
WinPatrol etc

Is it hardware - HDD badly fragmented/full

You really need to be able to rule some things out