How to execute console commands after end play?

I have created a simple blueprint that allows me to toggle sets of console commands (grouped in functions) via hotkeys. I set vars in order to discern whether or not a function (set of console commands in this case) has been called. I bound input “c” to clear out all console commands that are currently active. The problem is this: I need to be able to clear these out when the game ends. Id prefer not to block input from the player controller or anything like that. Id like to keep this self contained within the blueprint actor. Basically, how can I execute a console command after escaping the game?? Also, it is worth noting that I can setup an “event end play” node that feeds into a “print string” and manage to print to the screen after end play. However, hooking up a function or a “execute console command” simply doesn’t work. Is there a reason for this?

You could use Event End Play to trigger another blueprint