You dont need to type roll inside inline roll brackets (and that probably breaks the roll), so you can instead do
[[?{how many|1}d6!]]
The |1 means that when the query pops up it will have a 1 in by default.
You can of course also so
/roll ?{how many|1}d6!