Because of the pending lawsuit, an ad hoc team was created in order to prepare for the defense of their case.
Ad hoc generally signifies a solution designed for a specific problem or task, non-generalizable, and not intended to be able to be adapted to other purposes.
The system administrator panicked when he saw the server outages rising quickly. Rather than wasting time trying to identify the source from the start, he quickly threw up an ad hoc script that made the backup servers take over.