@Command( [FileOpenDatabase]; serverName : databaseName );
@UpdateFormulaContext;
@Command( [RunAgent]; AgentName );
@Command( [CloseWindow] )

(revised text from my own comment 12433464 at Experts-Exchange)