Best practice - how to switch pages on running utility hook

have onUtility hook script creates a FM record from data on page 1, how to go to page 2 on return. can it be done from the FileMaker script by updating of one of the global variables to the landing page or is there a better way with the page’s button (eg. adding an option to change path ?)