CMD provides netsh advfirewall commands for Windows Firewall configuration, such as enabling/disabling the firewall and setting rules. PowerShell introduces cmdlets like Get-NetFirewallRule and New-NetFirewallRule for viewing and creating firewall rules, offering a structured approach to firewall management with detailed rule configuration parameters, enhancing security management capabilities within the Terminal.