To apply photos recursively from a folder as desktop background in Windows 10 access the old control panel item via the run command:

control /name Microsoft.Personalization /page pageWallpaper