Hi Peter_1985,
Thanks for reaching out to Microsoft Q&A.
You can use Get-NetFirewallRule command
Example- Get-NetFirewallRule -PolicyStore ActiveStore
Please check this document for all examples and syntax- https://learn.microsoft.com/en-us/powershell/module/netsecurity/get-netfirewallrule?view=windowsserver2022-ps
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.