How to detect IP change and send email alert (bash & powershell)

How to detect IP change and send email alert (bash & powershell)
A common thing folks that run any kind of home server, need to do, is detect when they’re IP addressed normally a DHCP assigned address via they’re Internet server provider changes, by doing this is allows them continue to communicate with they’re server. Below are a couple of script one a bash script and the ...
Newark , US
10:13 am
87°F
Clear sky
High: 89°F
Low: 83°F
Wind: 6 mph