Indeed, that was a very old example which I had forgotten to include an '=' character, which is required for the runSketch()'s switch/case block parser:
So this is the fixed line:
final String[] switches = { ARGS_SKETCH_FOLDER + '=' + sketchPath(), "" };