The script failed due to call depth overflow. The call depth reached 1001 and the maximum is 1000.
Getting this error message while running Powershell script in ServiceNow (The script failed due to call depth overflow. The call depth reached 1001 and the maximum is 1000.) Please suggest.