Source: https://www.makeuseof.com/windows-show-dim-display-after-option/
In PowerShell, enter the following command to show the Dim Display after option in the Power Options menu:
powercfg -attributes SUB_VIDEO 17aaa29b-8b43-4b94-aafe-35f64daaf1ee -ATTRIB_HIDE
To hide it, enter the following command:
powercfg -attributes SUB_VIDEO 17aaa29b-8b43-4b94-aafe-35f64daaf1ee +ATTRIB_HIDE