not a very hard script but maybe it will save someone sometime.
If ($psArchitecture -eq “x64”) { Execute-process -path “$dirfiles\2005\vcredist_X64.exe” -parameters ‘/Q’
Execute-process -path “$dirfiles\2008\vcredist_X64.exe” -parameters ‘/q /norestart’
Execute-process -path “$dirfiles\2010\vcredist_X64.exe” -parameters ‘/q /norestart’
Execute-process -path “$dirfiles\2012\vcredist_X64.exe” -parameters ‘/q /norestart’
Execute-process -path “$dirfiles\2013\vcredist_X64.exe” -parameters ‘/q /norestart’}
ElseIf ($psArchitecture -eq "x86") { Execute-process -path "$dirfiles\2005\vcredist_X86.exe" -parameters '/Q'
Execute-process -path "$dirfiles\2008\vcredist_X86.exe" -parameters '/q /norestart'
Execute-process -path "$dirfiles\2010\vcredist_X86.exe" -parameters '/q /norestart'
Execute-process -path "$dirfiles\2012\vcredist_X86.exe" -parameters '/q /norestart'
Execute-process -path "$dirfiles\2013\vcredist_X86.exe" -parameters '/q /norestart'}