MCreator issue tracker has been migrated to GitHub.
Existing tickets have been migrated to GitHub. Please open new tickets on the GitHub tracker instead. If you do not have a GitHub account, all feature requests and bug reports from forums are still considered and checked by the maintainers.
In order to run the command, the procedure needs a reference (dependency) to one of the entities (player in creative mode or with cheats enabled) in order to execute a command due to security reasons in Minecraft to prevent cheating and we can't bypass this.
Use procedures own logic instead commands to achieve your desired action would be my suggestion.