.command extension make it possible to double click on it like bat files in windows. Daemon is runned as the user who executes the command file.