• Maybe you could elaborate on the

    cmd.Name -parameter. I have had some problems with that.