Is the script that contains it above Game_Switches in the list?
No, that would have been a problem had it been the case.
Hmm, is the snippet just by itself or is it part of a larger script?
And where exactly in the script editor is it currently located?
Below a few other scripts under Materials.
Aha. I'll tell you what the problem is:
RGSS, being based on Ruby which is an interpreted language, basically runs through your entire script list when you start the game and interprets all the code. Your call to "activate" is outside of a class or module, so Ruby takes it as something it has to process immediately, so it tries to set $game_switches[998] to a value...but because it hasn't yet reached the part where it has DataManager create all the global variables, $game_switches doesn't exist yet.
Do you want the switch set at game start-up or whenever a new game is started?
Well that worked, thanks a lot.
You can keep adding methods, constants and so on to the 'Addendum' module, as well. Use it for a dumping ground for anything that is too small for its own dedicated module.