Hi,
Unfortunately there is no way from PowerShell to conifugre directory settings of iLO5.
The main reason behind this is lack of support from iLO5 interfaces which has limited our support for directory works.
I will check iLO team if they have any workarounds to achieve this.
Thanks,
Gokul