This command makes it so that you can add any wargoal you desire, limitations no longer apply. This is a toggle command - run it again to disable it.
The syntax for the debug alwaysaddwargoal command is as follows:
debug alwaysaddwargoal DLC: Hearts of Darkness
Find below working examples of the debug alwaysaddwargoal command.
If this setting is disabled (default), typing this command into the console will enable it, allowing you to add any wargoal. Using this command while the setting is enabled will disable it (toggle it off).