There are no errors recorded as such. However, running the EV Management Shell command to list the latest index snapshots at EV Site level will show an index snapshot matching the time with that of the script that ran last on a local EV server where the script is configured.
Get-EVIndexSnapshot -SiteId " " -Latest
NOTE: The Site id value can be obtained from the SIteEntry table in the EVDirectory Database.
This is caused due to a setting selected under the Task properties to which the script is mapped via Task scheduler.
To resolve this issue, uncheck the following setting under Task Properties (Windows Task Manager) to which the script is mapped via Task Scheduler, and click on OK to apply the changes:

NOTE: Unchecking this option may prompt credentials to be entered for a user account that will be running this task (which should be Vault Service Account ideally).