Yeah, that just sounds like a bad idea. An operating system shouldn't do some things, and that sounds like it passes the point of sanity. Sure, scripts to clean things up and perform mundane tasks are fine, but as you mentioned, one failed script and the whole system might go wonky.