Added if statement
Added if statement

Added if statement to make this script compatible with Powershell version 2
octomike/chocolatey-coreteampackages,ebugusey/chocolatey-coreteampackages,octomike/chocolatey-coreteampackages,AdmiringWorm/chocolatey-coreteampackages,lennartb-/chocolatey-coreteampackages,lennartb-/chocolatey-coreteampackages,ebugusey/chocolatey-coreteampackages,AdmiringWorm/chocolatey-coreteampackages