Use a separate script to restart app

in order to run the app in background