Seems that the double quotes need to be escaped
wpa_cli set_network 0 ssid "\"AA0RaI40RaI40RaI40RaI40RaI40RaI4\"" or wpa_cli set_network 0 ssid '"AA0RaI40RaI40RaI40RaI40RaI40RaI4"'