You can use bop_cmd.
1. On SDM server create bulk.frg file with the following content
void bulkclose(string comment,...)
{
int i;
if (argc > 1)
{
uuid who;
send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");
who=msg[0];
for (i=1;i<argc;i++)
{
send_wait(0, top_object(), "call_attr", "api", "generic_status_change", who, argv[i], comment, "crs:5201");
if (msg_error()) {
logf(ERROR,"Error %s",msg[0]);
}
}
}
}
2. execute the folowing command or make the bat file with the following content
bop_cmd -g -v -u ServiceDesk -f %~dp0/bulk.frg bulkclose("my comment here,cr:402125,cr:402266")
first parameter is your comment, and then persistent_id's of the tickets to close.
You can also change my spel to accept ref_num's instead of persistent id's and pass them as parameters to bat file, but that is diferent story