How can I create administration panel roles programmatically

I successfully configured the plugin and import export works perfectly, however it seems importOnBootstrap does not function for some reason, have you encountered this error before ?