• Have you tried the following?

    $vsEnvVars = (dir Env:).Name -match "VS[0-9]{1,3}COMNTOOL"

    $vsEnvVars = $vsEnvVars + "..\IDE\"

    Gaz

    -- Stop your grinnin' and drop your linen...they're everywhere!!!