it has to be put in after the minigame is made but before any code that references $defaultminigame is executed. the only way to do that is through code, not the console.
if you dont understand torquescript at all, or even the very foundations of how variables work, you will not be able to make what you're trying to make. i suggest moving to suggestions instead and requesting that someone make it for you instead of posting for help here