Working With PowerShell and TLS

I found myself yet again dealing with PowerShell and trying to access a URL with the Invoke-WebRequest Cmdlet against a site using a self signed certificate. I have had to solve this problem before and there are plenty of articles on how to do this.