Hi hcarvcamp, hmm, seems like a memory leak. Have you tried utilizing the Database Connect App? It's built by Splunk precisely for this sort of purpose.
To address the script itself, could you share it in a comment? (or revise the question to include it)
Otherwise, please let me know if this answers your question! 😄
... View more
Are you running the ad-repl-stat.ps1 script on Windows Server 2012 R2?
http://blogs.splunk.com/2014/01/13/active-directory-replication-and-windows-server-2012-r2/
... View more