I want to upload files via PowerShell script that have been downloaded and edited, primarily I want to maintain the original metadata. Does anyone know what method this upload button uses from 2010? It is the closest to what I need to do. I am still trying to figure out other methods for upload that recognize the metadata but really wish I could put this exact method into my script and modify it from there to achieve what I really need.
So I found I need to use a HashTable to give the SpFileCollection.Add method the properties. I need to now understand how to turn the hidden XML metadata in the file download into a hash table. I wish that I could just see how they did it in the ribbon