Zend certified PHP/Magento developer

How can I have opening laptop lid wake computer, but closing laptop lid not put it to sleep?

I am running windows 11 on a laptop. There is an option in control panel to make the computer go to sleep when the lid/display is closed. This also makes the computer wake from sleep when opening the lid. However, I want my laptop to not go to sleep when the lid is shut, but wake if it is currently sleeping and the laptop lid is opened. Is this possible? If so, how would I do this?