One of them actually links to a proper download but the other one forwards you to a site telling you that what you’re looking for has retired …
To get moving install this module before executing the script:
Install-Module -Name MSonline
After completing this install you can run the script without any issues.