PowerShell Code

Double-click the code block to select all.

[xml]$Glbl = GC C:\common\SCRIPTS\GlobalVars\Settings.xml

now, the problem here is, the variable $glbl doesn't populate with the settings from the XML file. So to get round this in PowerGUI and Powershell ISE, you would run that part of the script first and then the variable would populate, allowing you to use Intellisense while you're writing your script.