... a bit late, but while the thought is still with me, I have always found this solution a little bit unnecessary a simpler solution (only a suggestion), would be to change the original file naming approach... placing the descriptor after the OS architecture (instead of before, as is currently) ie: defender-dism-x64-beta instead of defender-dism-beta-x64... My logic is, the original script is looking for defender-dism-x64 (in that order) and anything either side of the wildcards is ignored, placing the descriptor after negates the need for three separate scripts... just a thought. Thanks to you for your continued hard work, and to @atplsx for his recent contributions.
Thanks for feedback and suggestion, unfortunately I cannot relocate the descriptor after the CPU architecture as that would mess up things with @abbodi1406 scripts for the UUP to ISO Converter and WIN10UI. I will see what I can do to reduce the number of scripts, but I am not making any promises as I don't have a lot of experience programming scripts.
If memory serves, I garnered the logic from both W10UI and UUP-Converter by @abbodi1406 where he takes the approach of using wildcards for the architecture as well -> *defender-dism*%arch%*.cab ... essentially, an even more concise method..