installation - Install all the files from a given folder with Powershell - Stack Overflow

PHOTO EMBED

Sun Jun 19 2022 02:42:35 GMT+0000 (Coordinated Universal Time)

Saved by @pirate

$nameExe=@(Get-ChildItem | Where-Object {$_.Name -Like "*.exe"})
for ($i = 1; $i -lt $nameExe.Count; $i++)
{ 
    Start-Process -FilePath $nameExe.Name[$i] -ArgumentList '/silent', '/install' -Wait
    Write-Output "Instalando" $nameExe.Name[$i] "`n"
} 
content_copyCOPY

https://stackoverflow.com/questions/68661674/install-all-the-files-from-a-given-folder-with-powershell