Console commands VS Commandlets

Alright then, so, if we focus on commandlets I would like to know where should I put the commandlet code so that this code could call the code from my own plugin and/or what else should I do to be able to link my commandlet with my plugin as I do not know how to solve this dependency.

Thank you.