This is probably about to be a moot point considering how soon the deprecation deadline is approaching. However, the provided sample PowerShell script is really badly formatted in this blog post. It has somehow been condensed into a single-liner, and, as the first character in the script is a # symbol, the entire script is basically just a comment when you copy/paste it into an IDE.
So, it's taking a lot of time and effort to parse the script and properly insert the new line characters where the need to be to correct all errors.
Would greatly appreciate an edit to this blog post to make the script properly multi-line to help others in the future. At some point, we might have to do this again when TLS 1.2 is deprecated.
Thanks for the detailed article though. It's really helping me out in a bind as my company has made no effort to address this yet.