I have a small number of conditional formatting rules shown in the image below.
Formatting Rules Screenshot
I have 4 conditional formatting rules in Excel but i'd like to automate them using Typescript.
What i'm having trouble with is format the colour of a row using Typescript , based on two cells in the row.
eg, If column $B1 contains "Y(UP)KZR" and column $G1 contains "DN to UP" then highlight that row.
I can then duplicate the code for the three other rules i'm looking to automate.

getCustom().getRule().setFormula()to setup CF formulagetAddress()returns a reference with the sheet name. Transformation is needed for the CF formula.