Terminal commands are UObject classes parented to UOperatingSystemTerminalCommand. The bundled BP_CMD_Help is the canonical Blueprint graph to study and duplicate.
flowchart LR
Event["Event: On Process Command"] --> Logic["Internal_DisplayHelp<br/><i>your logic here</i>"]
Logic --> Finish["Finish Command"]