7. Procedure for regulating the escort of prisoners to and from courts in which their attendance is required and for their custody during the period of such attendance.