Snippet for firewall rule in choco package

To add a firewall rule

New-NetFirewallRule -Program C:\simulia\estproducts\2024\win_b64\code\bin\elit_driverlm.exe -Action Allow -Profile Domain,Private -DisplayName SMAEliLicensing -Description SMAEliLicensing -Direction Inbound -Protocol TCP
New-NetFirewallRule -Program C:\simulia\estproducts\2024\win_b64\code\bin\elit_driverlm.exe -Action Allow -Profile Domain,Private -DisplayName SMAEliLicensing -Description SMAEliLicensing -Direction Inbound -Protocol UDP

To Delete a firewall rule

Remove-NetFirewallRule -DisplayName "SMAEliLicensing"
Remove-NetFirewallRule -DisplayName "SMACaeKMain"