diff --git a/Tools.ps1 b/Tools.ps1 index 69c5ac3..581e16e 100644 --- a/Tools.ps1 +++ b/Tools.ps1 @@ -169,8 +169,8 @@ switch ($PSCmdlet.ParameterSetName) If ( $Halt -eq $false ) { - Log "Executing: ${Script} ${Arguments}" -Name $LogName - Try { Start-Process "${Script}" -ArgumentList "{$Arguments}" -Wait } + Log "Executing: ${Path} ${Arguments}" -Name $LogName + Try { Start-Process "${Path}" -ArgumentList "{$Arguments}" -Wait } Catch { $_.Exception.Message | Log -Name $LogName } } Else { Log "Dependent apps are currently in use and are preventing the specified script from running" -Name $LogName }