It depends on the command. If you set the spirit's rv, you may not see the change instantly so you may need to continue or quit interacting with the spirit. Oh. and the spirit must be present.
The debug console is usually for debugging. If needed, you can also open the debug window by pressing F3 at the interaction scenes.