The solutions to the above errors are as follows:
Double-click to open the file in the image, then press Enter in the pop-up console to confirm the installation. Then, PowerShell will automatically open and execute the automated installation. The whole process may take some time and may intermittently download files of about 3GB to fix the above issues.