It's possible that @Lime Husky's comment is causing the issue:
Is it possible that you only forgot to add the People API Service
If this might be the case, see Enable advanced services.
I tested your code, and it works well after I added the People API service.
Execution log:
2:27:48 AM Notice Execution started
2:27:50 AM Info { createdPeople:
[ { status: {},
requestedResourceName: 'people/c8559814598637378694',
person: [Object],
httpStatusCode: 200 } ] }
2:27:52 AM Info { createdPeople:
[ { person: [Object],
httpStatusCode: 200,
status: {},
requestedResourceName: 'people/c5855266702224524538' } ] }
2:27:53 AM Notice Execution completed