Add an API to restart with a specific script.