Run console command via C++?

Simple question I hope - how do you run a console command from C++? Haven’t been able to find this so far, and the API pages are starting to not work.

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”));

Awesome, thank you. Exactly what I needed.