Add/remove dock items

Is there a way to add and/or remove items from the dock with Applescript? If so, can someone provide examples? TIA.