Made install script compatible with earlier Powershell versions.