It may be interesting to move most of AdminCmd into a GameScript library that simplify adding communication between the GS and an admin bot. This way existing GSes can use this library to provide admin port hooks.
For inspiration, you may want to look at SCP which is a communication protocol that allow GS <-> AI communication. Another option is to extend SCPLib (an implementation of SCP) so that commands added by a GS are also exposed to admin port clients (possible with the option to only expose a command to only AIs or only admin clients).
It may be interesting to move most of AdminCmd into a GameScript library that simplify adding communication between the GS and an admin bot. This way existing GSes can use this library to provide admin port hooks.
For inspiration, you may want to look at SCP which is a communication protocol that allow GS <-> AI communication. Another option is to extend SCPLib (an implementation of SCP) so that commands added by a GS are also exposed to admin port clients (possible with the option to only expose a command to only AIs or only admin clients).