The value of the {0} key in {1} is {2} and the module has nested modules. When a CDXML file is the root module, the Import-Module ...

The value of the {0} key in {1} is {2} and the module has nested modules. When a CDXML file is the root module, the Import-Module command fails because the commands in nested modules cannot be exported. Move the CDXML file to the NestedModules key and try the command again.