That's not the problemI copied/past the command in the consol and they all worked.
player.add_item("blue pill", xx) => no space after "blue pill", a space after the comma
The save game is screwed, the "player" object does not exist.
That's why it's not advisable to use console commands if you don't know what you're doing.