Script that highlights entire row after finding duplicate cells in column google

im trying to figure out how to make a button through script in google sheets thats going to be pressed on the cell that’s currently active, go through the entire column of cells to find a duplicate of the previous active cell, and then highlight the row that each duplicate cell is on. Any ideas?