How to autostart my c++ program

as well probably better to specify the full path to where the script is located.