fixes command input to pass all remaining arguments to command to be run, moves password code to its own function, implements changing directory before executing
fixes command input to pass all remaining arguments to command to be
run, moves password code to its own function, implements changing
directory before executing

allohakdan/pgm,mrdanbrooks/pgm