AD user import automation

Hi, is there some methods to autmate user import from Active Directory without using gui, but only with shell script or something like that (e.g. fwconsole) ?

Thanks