I have a document library in SharePoint Online that has a large amount of documents which have a column that sorts them. What i want to be able to do if it is possible is use powershell is move all of the files that for example have in that sorting column the value "red" into a folder named "red", then it moves onto the next file and if the sorting column is blue, move it into the folder blue.
If anyone has any ideas about how to do this it would be much appreciated