I will get email id's as comma separated string (recipient1@example.com,recipient2@example.com,recipient3@example.com ).
How can I build json string like this by using power shell
{"personalizations": [
{"to": [
{"email": "recipient1@example.com"},
{"email": "recipient2@example.com"}
]}]}