Hello,
I've tested the script above but received the following errors in the log:
Cannot find an overload for "BindToObjectByDNEx" and the argument count: "1". Stack trace: at <ScriptBlock>, <No file>: line 4
The property 'AccountDisabled' cannot be found on this object. Verify that the property exists and can be set. Stack trace: at <ScriptBlock>, <No file>: line 7
You cannot call a method on a null-valued expression. Stack trace: at <ScriptBlock>, <No file>: line 8