For efficiency reasons, toolbar commands that open/close toolbars are all queued until the function is complete, and then performed all at once in a batch.
You could get around this by using dopusrt /cmd to send the Image convert function asynchronously, eg:
dopusrt /cmd Image CONVERT HERE REPLACE
Toolbar NAME=Test CLOSE