Hello @teodoric666
When you post code, please use the method described in the link. You can now edit your post, go back to your post and use the ... in the upper right to do so.
You should take the time to read forum rules. In there you will find all you should know of what it is allowed and what is not.
Before embarking in coding, you should take a moment to plan your algorithmic approach. Once you start coding, you should be able to debug your code, there is a _Debug UDF, that can help you in your process of finding a solution. Now dropping a bunch of code to us to rewrite it so it will work for you, is definitely not the best way to learn how to program with AutoIt.
Since you are new to AutoIt and you may not be familiar to all its intrinsic, I would recommend to use AutoIt functions (as far as possible) instead of relying on external programs. In your case, you may want to look at _FileListToArray or _FileListToArrayRec (which has a mask to exclude folders). Having a list of folders to copy into an array will help you to understand what is going on. Use _ArrayDisplay to read the content of an array. Finally look at DirCopy to perform the actual copy/backup of your folders.