Hello Raul,
Probably the issue occurred because you have specified the value of the $ouDNs
variable in the script incorrectly. It has to be an array of distinguished names of Organizational Units like so:
$ouDNs = @(
"OU=05 - Service Users,DC=example,DC=local",
"CN=Users,DC=example,DC=local"
)