The script is available for download from https://gallery.technet.microsoft.com//How-to-fix-The-file-is-2684aa3b. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This VBScript shows how to fix the issue "The file is corrupt and cannot be opened" when opening an Excel file.
Some consumers encounter an issue "The file is corrupt and cannot be opened" error on office Excel while opening .xls files. This script will try to fix that.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery