Wake On Lan Enabled Bios

Hello

I am using this following relevance to determine if the NIC wake on lan is enabled. This seems to be working well except on some of the newer Windows systems such as Windows 11 21H2 or 22H2. I was wondering if there might be a better way of finding this or possible add some error checking so that instead of error maybe something like not detected.

exists conjunctions whose(TRUE = it) of boolean values of selects “DeviceWakeUpEnable FROM MSFT_NetAdapter WHERE HardwareInterface=True” of wmis “ROOT\StandardCimv2”

Any ideas are appreciated