PSWebDeploy is a PowerShell module that wraps PowerShell around (Web Deploy) msdeploy.exe. This greatly eases figuring out the long syntax required for msdeploy.exe.
This function uses the msdeploy sync
verb to sync local contents to a remote web server.
This function uses the msdeploy dump
verb to retrieve a list of files from a remote web server.