Run console command via C++?

Though we generally try to avoid writing code that relies on executing console commands, you can do it with:

UWorld::Exec(…)

E.g,:

GetWorld()->Exec(GetWorld(), TEXT(“MyAwesomeConsoleCommand X Y Z”));