Except for a few laptops with dedicated buttons for screen off, most laptops lack this feature. Setting a timeout to turn off the screen can be inconvenient for many users. To address this, let me introduce you to the Nircmd tool.
With Nircmd, locking and turning off the screen happens with just a click. Follow the steps below to quickly set up screen lock and turn off with Nircmd.
Guide to Using Nircmd to Lock and Turn Off the Screen
Step 3: Save the file as lock.vbs and place it in the Lock folder.
Now, if you want to turn off and lock the screen, simply go to the Lock folder and run the lock.vbs file. Alternatively, you can place the lock.vbs file on the Desktop for easy access whenever you want to turn off the screen.