Run command: how to wait until its done