Allow GarbageCollection task to be run from the command line (Bug #12061)