Once the paper/command executes, the paper is removed from their inventory. If the paper is "invalid", the command does not run, and they keep the paper.