How do you set the UIVersion and content type of the masterpage

Oct 15, 2015 at 2:30 AM
How do you set the UIVersion and content type of the masterpage. If you upload it using your script the content type is wrong and the uiversion is not set