The largest examples of these orders are Hiroshima and Nagasaki.
The firebombing of Dresden when the theory of concentrated bombing in towards a center resulted in the annihilation of 90% of Dresden and the civilian population.
As well as several years of both sides bombing each other's towns and cities.
Just a couple of precedents

Then we get the politically appointed military saying "only kill the ones that are firing at you, Not-Anyothers!
FFS!
It's warfare and in any war the civilians are always going to get killed, ( it's known as collateral damage ) if they're so concerned with that fact they should never have sent any troops there !
And to add further to the general disgust, the majority of civilians over there in a Moslem country would carry out the Commands as in the Koran and kill the Kaffir ( infidel ) if they ever got the chance to give their whole family a free ticket to Allah.
And to try to use the civilian courts to prosecute a military operation disgust me to the max!
Bet them who ordered the use of our troops never get prosecuted, they're too busy hiding behind the grunts.
FFS there are different courts for different actions :- Civilian court for Civilian matters and Military for Military
Ron