When any person is charged with committing an offense while confined by the Department, cognizance thereof shall be taken by the circuit court of the county wherein such crime was committed. Such court shall adjudicate and sentence the person charged with such crime in the same manner and subject to the same rules and limitations as are now established by law in relation to other persons charged with crime. The expense of prosecution shall be paid by the Department.
730 ILCS 5/3-6-5