1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
Add-Type -AssemblyName Microsoft.VisualBasic function Ejecutar { [CmdletBinding()] param ( [Parameter(Mandatory=$true,ValueFromPipeline=$false )] [String] $ejecutar ) process { try { [Microsoft.VisualBasic.Interaction]::Shell($ejecutar) } catch { Write-Warning "Error occured: $_" } } } |