How to execute a command via Sponge API

How would I be able to run a command directly from Sponge API
In other terms, I would like to recreate this line of code, but for Sponge API
Bukkit.getServer().dispatchCommand(commandSender, commandString);

I think this is the correct way:

Sponge.getCommandManager().process(player, "command and arguments");
1 Like

Thanks for the seemingly quick response, I will see if it works for what I need, thanks!