Parameters
- folder
- searchPattern
- The search string to match against the names of folders. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters. Use "*" to match all folders.
- scanMode
- Specifies whether to scan subfolders or not.