Mattia – There are multiple ways that you can do this.
First, your method of executing “local command 1” is fine. Why don’t you simply execute the local command 1 on just a single row instead of on all rows? That way it will only be executed one time.
Another option is to create a separate, single row just for the local command.
Lastly, if you want to automate the entire process you can do the entire thing in an automated queue if you use the Using the Advanced Multi-Row Queue Sequence
I hope this helps.
-Doug