XbdmEnums.ps1

if (-not ('DMPL.PRIV' -as [Type])) {
    Add-Type 'namespace DMPL {
        public enum PRIV {
            WRITE = 2,
            READ = 1,
            CONFIGURE = 8,
            MANAGE = 16,
            CONTROL = 4,
        }
    }'

}

Add-Type 'namespace XBDM {
    public enum BOOT {
        TITLE = 0,
        WAIT = 1,
        COLD = 4,
        STOP = 8
    }
}'