diff --git a/scripts/Windows/Scripts/Entrypoints.ps1 b/scripts/Windows/Scripts/Entrypoints.ps1 index fc4c3b04..ed2cfcc5 100644 --- a/scripts/Windows/Scripts/Entrypoints.ps1 +++ b/scripts/Windows/Scripts/Entrypoints.ps1 @@ -1,6 +1,6 @@ function Get-Entrypoint() { - $stackTrace = Get-PSCallStack - $call = $stackTrace[$stackTrace.Count - 1]; + $trace = Get-PSCallStack + $call = $trace[$trace.Count - 1]; if ($null -ne $call.ScriptName) { return $call.ScriptName;