Custom CLI Scripts?

Are there any guides on writing custom CLI scripts?

Nope.
you can how ever open strapi interactivly with npm run strapi console