I think this has what you are looking for
MSBuild "MyProjectName.csproj" /T:Package /P:Configuration=Staging;PackageLocation="D:\Vishal\Package.zip"
I got this from this site:
http://vishaljoshi.blogspot.com/2009/02/web-packaging-creating-web-packages.html