Completed basic function that calls execvp.