Trigger automation/script from their editor

For testing purposes it would be useful to be able to trigger an automation/script from their editor to check the outcome.