Cannot Reboot with WOL setting

Hi All,

System info is below. The short version is that I have a b450 Ryzen 2700 system with a Realtek chipset for my integrated NIC and cannot reboot properly when I enable my WOL script.

I have checked the command in the shell and it works fine (changes the WOL flag to g), but when I put it in a script it freezes during reboot (for reference the intent of the script is to make this change each time that the system boots as the change in not permanent).

Does anyone have any guidance? I am on Dragonfish-24.04.2.