diff --git a/scripts/Windows/Scripts/Hooks.ps1 b/scripts/Windows/Scripts/Hooks.ps1 index 78843f83..fb2e2b5d 100644 --- a/scripts/Windows/Scripts/Hooks.ps1 +++ b/scripts/Windows/Scripts/Hooks.ps1 @@ -1,11 +1,11 @@ function Invoke-Hook() { param( [string] $Name, - [System.Action] $Fallback + [scriptblock] $Fallback ) if ($Fallback) { - $scriptBlock = { $Fallback.Invoke(); }; + $scriptBlock = $Fallback; } else { $scriptBlock = { }; }