1 2 3 4 5 6 7 8 | if(Get-Package | Where-Object name -eq "posh-git") { "Lo tengo instalado" } else { Install-Package posh-git } |
1 2 3 4 5 6 7 8 | if(Get-Package | Where-Object name -eq "posh-git") { "Lo tengo instalado" } else { Install-Package posh-git } |