Sorry I know this is a stupid/silly question but I'm having an elderly moment and can't remember how/if this can be done.

I want to run different scripts for differnt OU's.
I'm using a udf in the beginning of my script.


If InContainer('ou=OFF,dc=domain,dc=com','User')[0]
can I now use "call %logonserver%\netlogon\scriptname ??

or will a Call command not work?