I have 2 switches, one hacked, one not. The hacked one would get the shiny and trade it to my unhacked, then the unhacked switch would trade to my friend online.
Title says it all. My friend wants a certain shiny pokemon, I have a hacked switch and can get the shiny pokemon he wants, trade it locally to my unhacked switch, then trade it to him online, however I'm unsure if I would get my unhacked switch banned in doing so.