I have a powershell module that defines some basic functions that write log events according to corporate standard, and another single function which creates the folder the log file should go into, and restarts the logging app service.

Each function that writes different severities of log event needs to use the `$LogFileLocation` variable (set in the function that creates the folder, restarts the service and generally gets the system ready to start logging) but the `$LogFileLocation` variable is only available inside the function that does setup.

How can I make it available to the other functions, including to any script functions from a script which imports the module? I've tried `Global:$LogFileLocation` instead of just `$LogFileLocation` but this doesn't seem to make it a global variable.