Or did you tried create script via internal c4d command?
As in your example, select display tag, set parameters/options what you need, then SELECT them (entrys are orange/ with Ctrl add to selection) and then right click/Xpressions/Create script...
Then copy all those lines to your script...