The POWERCFG /HIBERNATE OFF
command you mentioned disables hibernation, which is a separate feature from sleep mode.
Hibernation saves the current state of your system to the hard drive and then powers off the computer, allowing you to resume your work later.
Sleep mode, on the other hand, keeps the computer in a low-power state while maintaining the current state in RAM for a quicker wake-up.
Steps to follow:
Open Settings > Click on System. > Power & battery tab > Under the “Power” section, click the “Screen and sleep” setting. > Choose the Never option to prevent the screen from turning off automatically.> Choose the Never option to prevent the computer from going to sleep automatically.
Microsoft references: