You can use FAutoConsoleCommand and bind function to it.
static FAutoConsoleCommand CheatsTestCommand(
TEXT("Player.Teleport"),
TEXT("Teleports Player"),
FConsoleCommandDelegate::CreateStatic(UYourCheatManager::TeleportPlayer),
ECVF_Default);
You can use FAutoConsoleCommand and bind function to it.
static FAutoConsoleCommand CheatsTestCommand(
TEXT("Player.Teleport"),
TEXT("Teleports Player"),
FConsoleCommandDelegate::CreateStatic(UYourCheatManager::TeleportPlayer),
ECVF_Default);