No we will not give you code OR PLUGINS for that. There isn't even a ConsoleCommandExecutor. Now go look through the PocketMine API here on your own.
Are you trying to send a command as the Cosnole? PHP: $this->getServer()->dispatchCommand(new pocketmine\command\ConsoleCommandSender(), $command);