$ launch myprog param1 param2
will execute the command myprog param1 param2 after setting up its environment so that it runs as a daemon. This will allow you to write commands in such a way that you can run them as ordinary commands while you are logged on, or run them as daemons so that they will continue to execute even after you logout.