Creating new Access Control

New-PSUAccessControl only works inside AccessControls.ps1
It doesnt create new Access Control Rules, instead it returns whatever stuff is expected to be returned from accessControls.ps1

When I played with this a year ago Dynamically add Roles and Tags? - PowerShell Universal - Ironman Software Forums

I found that for the most part, you have to append your code to the Configuration file.
like take this:

#creating access control This doesn't work
$Type = ([PowerShellUniversal.AccessControlType]::Edit -bor [PowerShellUniversal.AccessControlType]::View)
New-PSUAccessControl -Role 'Testing' -Tag 'Testing' -Type $Type

and throw it into accessControls.ps1

It’s not pretty, doesnt validate very well.