How do I trigger the enter button on a dialog?

Could someone help me with this (the dialog does not need to quit)

Just do an command.