It would be very useful to perform network scan from agents. As an example, similar functionality exists in CobaltStrike: https://hstechdocs.helpsystems.com/manuals/cobaltstrike/current/userguide/content/topics/post-exploitation_port-scanning.htm