How to Reference Environment Variables in Windows
Guide
You can reference an environment variable named ‘variable name’ via ${env:variable name}. For example, if you want to get the user name in Windows, you can use ${env:USERNAME}.
Example
PS C:\Users\rmsms> echo ${env:USERNAME}
rmsms
PS C:\Users\rmsms> echo ${env:JULIA_NUM_THREADS}
16
