the power button this is referring to is the one in the start menu of windows, not on front of PC.
Pressing power button on front is a hard shutdown, not a soft one.
what are some details of your PC?
the sleep problem could be drivers.
try this
right click start button
choose Windows Terminal (Admin)
If it doesn't open as powershell, click the arrow in the title row and pick it from drop down.
copy/paste this command into window:
Repair-WindowsImage -Online -RestoreHealth
and press enter
Then type SFC /scannow
and press enter
Restart PC once both are run.
First command repairs the files SFC uses to clean files, and SFC fixes system files
SFC = System File Checker. First command runs DISM -
https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/what-is-dism?view=windows-11