Adding Access Rule for Directory - using Invoke Method or Assign

Hi there,

Hopefully some one will be able to assist me with the following:-

  1. Create a new directory -Done
  2. Adding access rule to the created directory using SetAccessRule/AddAccessRule Method.

I have tried this using Invoke Method / Assign but getting the the following errors

image

Thank you