Personally, and for at least one professional psychologist I know, the "please" does imply optionality.
However, she and I were speaking of addressing commands to children, and as your comment notes, the other factor in the situation, force backed authority, rules out the optionality. Although, as already pointed out by @choster, one could choose to be arrested or denied entry to a country by refusing to produce the relevant documents.
As to "whether the asker used the word appropriately" appropriately is hard to define. As others have already pointed out there is both a politeness associated with please and a possible emphasis of the request. Particularly in the case of emphasis the questioner used the term appropriately, and for many people the absence of politeness would be worse than any technical ambiguity of usage. That said, commands have a specific form, as @TonyBalmforth pointed out regarding military orders.
As a native (American) English speaker I would never argue that the questioner's grammar was incorrect, but the use of please in any command causes me minor annoyance.