When calling Asteroid:RemoveSeedlings (int faction, int number), the most frequent result is a game crash. If the command is invoked from console, the crash does not happen, and the output is:
"Index was out of range. Must be non-negative and less than the size of the collection."
The error does not happen if the number of seedlings to remove is 0 or there are 0 seedlings of the faction in the asteroid.
The attachment is a small test level. Move the RemoveSeedlings calls around to check different results.