Powershell Script Check If Environment Variable Exists Cast