Actually the shutdown is asked by the Guardia Civil, which is a police, not a judicial authority
Are the Guardia Civil and the judicial branch not part of the government in Spain? I mean, it's still the Spanish government right?
Just for context, in the US we have police and national guard and judges and prosecutors, etc. But we would consider them all to be part of the government.