How to reactivate a project that is done or abandoned using OMNI Automation?

Using the Shortcuts app, I want to look for a project with a specific text in the title. If it exists, I want to reactivate it if it’s done or abandoned in order to then add tasks in the following steps of the workflow.

This is the way for OF4 Reactivate Project by Name

It looks for a dropped or done project with the name you input into the Omni Automation Script action. If the project is found it returns its primaryKey else -1.