You need to use the api to set a valid transaction name (ie, the command name) using the api, also you can send parameters command to new relic using the parameter api.