This sample script authenticates with the LMS and then uses the identity returned to interact with a microservice. This is similar to how a real user would interact with a microservice through an MFE. You can copy it, pull out the PIE service, and put in your own calls.
...