Please follow the steps in the KB below to elevate the Windows Defender Firewall snap-in, replacing "Services.msc" with "WF.msc".
Identify the Windows Defender Firewall CLSID you need to elevate based on the UAC message.
Create a Least Privilege Manager COM Class policy.
Choose the well-known COM Class option from drop-down.
Select the COM Class needed, then click Add selected.
Ensure the Run with elevated privileges option is selected, then click Next.
Then click Finish to save the policy.