$FirstName = 'Bob'
Export-ModuleMember -Variable FirstName
To export a variable from a module, you use the Export-ModuleMember command, with the -Variable parameter. Remember, however, that if the variable is also not explicitly exported in the module manifest (.psd1) file, then the variable wil...