CHANGED:applied the printCommand with target printer name function