$ 0 0 Think it is a missing " ) " at the end of •If (([environment])::Is64BitOperatingSystem) -eq $true I added it, and it works fine.