While you can't create an 'Optional Prompt' at the Command Level, what you can do is create a prompt with a 'Default Value'. You can then handle the default value in the where clause of the query.
Something similar to what Raghav suggested above.
-Abhilash