Possibility to run simctl commands during UITests

Hi, is there any other way to run simctl commands before UITests, besides using the "Pre-actions" script? I.e. is it possible to run the commands between the tests to reset states?

The resetAuthorizationStatusForResource: was a great addition, but it would also be nice to reset other things, like keychain or deleting the app, which are not available in the API, but exist in the simctl.