This is a toggle command - it will open and close the portrait editor tool.
The syntax for the portrait_editor command is as follows:
Find below working examples of the portrait_editor command.
If the Portrait Editor is closed (default), the above command will open it. Running portrait_editor whilst the Portrait Editor is opened will close it.