Solarwinds Support have provided the following solution which works very well:
- Remove the "UseExactPromptMatch"
- Set "VirtualPrompt" to value="\[.*\]" (which specifies the prompt's start and end in RegEx)
- Set "UseVirtualPromptForCommands" to value "true"
Now everything works as epected.
These are the lines I have now in the Device Template:
<Command Name="MenuBased" Value="false"/>
<Command Name="VirtualPrompt" Value="\[.*\]"/>
<Command Name="UseVirtualPromptForCommands" Value="true"/>
<Command Name="EnableIdentifier" Value="]"/>