You can tell the computer to go to sleep by executing the following command from a terminal
The computer should immediately go to sleep.
Sleep with delay
If you would like to add a delay you can do the following. Replace 5 with the number of seconds you want to wait.
sleep 5 && systemctl suspend
Open up a command prompt with administrator privilages, either right click and Run as Administrator, or hit the Windows Key type in cmd and then hit CTRL+Shift+Enter.
Sometime you may need to turn it on so you can install a modded driver or something, other times it needs to be turned off so you can install EasyAntiCheat…
bcdedit -set TESTSIGNING ON
bcdedit -set NOINTEGRITYCHECKS ON
bcdedit -set TESTSIGNING OFF
bcdedit -set NOINTEGRITYCHECKS OFF
Reboot for the changes to take effect