A exportação de variável manifesta
VariablesToExport = @(
"ERROR_SUCCESS_REBOOT_REQUIRED",
"ERROR_SUCCESS",
"ERROR_INVALID_FUNCTION",
"WAIT_TIMEOUT",
"ERROR_FAIL"
)
As variáveis são definidas em um arquivo PSM1 listado em NestedModules
$ERROR_SUCCESS = [ordered]@{
Number = 0
String = '0' # The thing the CSV interfaces return
HexString = '0x00000000'
}
Mas eles não são acessíveis de onde o módulo é carregado.