Hello,
CEA resolutions like 720p or 1080p will work with the same settings. SD format will not, VESA formats will not.
If you don't care about EDID, HDCP, and realize you have to reprogram it everytime a new display is plugged in and strictly limit supported resolutions. You can get away with a static script most likely.
Otherwise, you are going to need to handle the different possible cases.
Dave