s4/drs-tests: Split samba-tool command line generation into separate method