Please follow the below steps...
Firstly understand that there is no single command to unfreeze multiple tapes. we are just running same command multiple times.
1. Take the list of frozen tapes.
2. Copy the list to an excel sheet.
3. prepare normal command to unfreeze.
Example:
a) column A: bpmedia -unfreeze -m
b) Column B: <mediaID>
c) column C: -h <Media_server>
so if u paste row 1 it looks like: bpmedia -unfreeze -m <mediaID> -h <Media_server>
4. paste all the list of tapes in column B and copy the command to all the rows.
5. Then copy all the commands to a new text file and save the file with extension .bat.
6. Run this file to expire all the tapes in a moment.