Script/agent to automate OU change

Dear All,

I want to automate the process of changing OU for bulk users. can anyone suggest what function should i use.

An excel file will be the input to this agent. It contains current OU name, new OU name and passwords.

Also suggest if any other better idea?