As i said previously you are digressing from what the initial discussion was about as in what power companies can do to enter your premises to take or force fit a meter and concentrating on what a small part of the uk with different laws from the rest of the country does in some rented properties. I have given links to say it is illegal in england /wales but even your own link doesnt make it clear what they do to progress the forced entry if the hand delivered or registered letter is not acknowledged, but they are not forcing entry to disconnect the gas but to actually service the appliance.No, no court involvement whatsoever, they work directly for the council/HA who instruct them in this instance. I've shown you how it works, at least in Scotland, I don't know what bit you aren't getting.
But sheriffs are used rarely for this anyway. It is all done in house,
"Our new powers mean we don’t have to go to court to obtain a court order", https://www.dailyrecord.co.uk/news/local-news/council-break-homes-gas-checks-2602068
"Each case will be assessed and authorised by the relevant Manager.", https://nghomes.net/data/No_Access_Policy_2021_03_12_15_44_22.p