If ((Get-WindowsCapability -Online -Name VBScript).State -eq "NotPresent") {
  return 0
} else { #Installed
  return 1
}