jan-h
5/13/2016 - 7:14 AM

Call Powershell script with path and arguments

Call Powershell script with path and arguments

$scriptLocation = Join-Path $someScriptLocation 'other-location\script.ps1'
$arguments = @{
    one     = 'Hello'
    two     = 'World'
}
$null = & $scriptLocation @arguments