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
4:03 pm
39°F
Overcast clouds
High: 41°F
Low: 36°F
Wind: 10 mph