How does the Supreme Court's involvement influence appointments to key posts like the Director General of Police?

The Supreme Court has asked UPSC and Tamil Nadu to expedite the process of appointing a regular DGP. I want to explore the role of the judiciary in administrative appointments and its effects on governance.