You have lots of restrictions i know. You are at client side and you can nothing about business logic. But ! Solution
Create dummy entity with your parameters
Create action
Code business logic under plugin
Create record in dummy entity
call action
get your values
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/query-data-web-api
what a journey!