in reply to Probably an easy one - store command in variable.

As socketdave told you, eval strictly answers your question. But there are good resons to discouraging one to use it, if possible. So I strongly recommend considering some alternative strategy, e.g. putting into $command a coderef. However without knowing what it is that you really want to accomplish it may be hard to give a suitable example...