I had actually looked at that script and it finishes the ticket but I don't need to complete a ticket, I need specifically to change the status.
It calls a ticket complete function but at no point directly calls the status. I can "cheat" the status by calling one of the ticket functions that auxiliary has this effect. Ticket Create sets the status to new, Ticket open sets the status to open(or in progress depending on the board). However as far as I can tell they are changing the status behind the scenes.
Is there a way to directly access and change ticket status?