Purchase a list of LEGO parts
Doing this for Pick-a-brick (which sports an antiquated UI) requires some fairly advanced hacking. See this question. It's unfortunate that there is no simple interface for importing composite sets of bricks.