get-netfirewallrule: The term 'get-netfirewallrule' is not recognized as the name of a cmdlet, function, script file, or...

Requirement:

 Display a list of all Windows Firewall rules. 

Problem:

When I ran Get-netfirewallrule on my Windows 7 PC, I got an error as above in the title.

Reason:

This cmdlet is pretty new. It is only applicable to Windows 8.1, Windows Powershell 4.0, and Windows Server 2012 R2.