Won't that move things up one level, rather than flatten everything to the top level? There are better ways to do that, if so, and I am not sure that command is safe if you have nested folders with the same names like C:\...\Foo\Foo
See Move everything up in Quick buttons for directory organisation