what is a temporary custody order