Infinitive: unrealized (it hasn't happened yet)
1. A new way to run this script.
Meaning, the new way hasn't been tried before.
Gerund: realized (it has happened before)
2. A new way of running this script.
Meaning, the new way has been tried before, elsewhere.
Does that help?
Student or Learner