How to create JWE in pre-request script

I would like to know how can I create JWE in pre-request script. I am using jsrsasign library to sign jwt but it doesn’t support JWE.
I have found one library jose but I am not able to find CDN which can be used to load library in the global variable. Is there any other option ?

Anyone ever successfully created JWE in pre-request script ?