The provided answers don't provide any powershell version:
Short version:
ipconfig | Select-String "IPv4"
Complete version which include also gateway, netmask, dns
ipconfig /all | Select-String "IPv4" -Context 7,5
The -Context 7,5
option ensures that 7 lines before and 5 lines after the "IPv4" match are included.
You may need/can tweak those value to include or exclude more info