Use slash command via incoming webhooks

When an incoming webhook writes text in a room if the text is a slash command it’s not executed as a command.

What can I do to be sure that the command will be executed?

I don’t see any information on the documentation of the incoming webhook that says you can use a slash command with it.

However, you can do so using the API, see