Now that I've had some coffee, I'm wondering why you need separate scripts for different platforms and architectures?
Consider installing a program with separate architectures - rename the installers as:
Application_x86.msi
Application_x64.msi
Use the Arch() UDF to determine the platform architecture:
$Arch = Arch() ; now contains either "x86" or "x64"
Copy the install file to a common name
Copy "Application_" + $Arch + ".msi" "C:\Temp\Application.msi"
Then simply run the "application.msi" installer. Same deal if you're using an EXE.
You could extend this concept if there were different versions for W7 and W10.
We support about 2500 endpoints and have over 100 app installers that work this way - each installer uses these UDFs to determine what source package to deploy.
Glenn
_________________________
Actually I
am a Rocket Scientist!