Im developing a custom module, from this module im trying to disable other modules (for certain reasons).

lets say I want to disable the search module, how would I do this?

Any ideas?