I tested it out on my side and they should be working fine. Maybe there was a typo? The full command should look like the screenshot below (minus the script enabled part):
And after you go back to the game, it should pop up a dialogue box that says "You have gained however many favor points".