The answer was really easy: I just needed to get the ID of the button in picture 4. Once I could get it dynamically, I just had to simulate a click with JavaScript.
document.getElementById("buttonID").click();