I had to automated deployment of lists and libraries into different environments, e.g. on premises and onlineThere are different elements to consider when deploying lists or libraries namely List Properties, List Content Types, Views and Fields.The script export the list schema X