/* Function to return a pointer to the currently running script file object. */
SCRIPT_FILE* EFIAPI ShellCommandGetCurrentScriptFile(VOID)
/* Function to return a pointer to the currently running script file object. */
SCRIPT_FILE* EFIAPI ShellCommandGetCurrentScriptFile(VOID)
{
  SCRIPT_FILE_LIST  *List;
  if (IsListEmpty (&mScriptList.Link)) {
    return (NULL);
  }
  List = ((SCRIPT_FILE_LIST *)GetFirstNode (&mScriptList.Link));
  return (List->Data);
}