How can I create administration panel roles programmatically

But I’m not sure if that’s what you’re after