Is that OK to leave a small endless loop script running on server?
Powershell assistance for Active Directory Cleanup
Those are two examples that I've seen in the last day. Neither of which deal with illegal activity, unethical behavior, or general shadiness. Sure, each environment might be unorthodox and it may not be a place many seasoned veterans would like to work, but early in a career, working at the wrong place can be just as valuable as working at the right place. It's not like this was the guy with the security auditor that demanded all passwords in plaintext.
If there's an alternative solution, the OP should be told of it. If the OP can't use that solution, they should be asked why. If they say it's because of some ridiculous constraint that most people wouldn't ever deal with, we can close the question. But telling people to quit their jobs because there are 20k stale objects in AD is silly. A two line script can fix that in about 5 minutes.
Let's take it down a notch.