Run script as a background service