Hi @ghdunn ,
Based on your description, Please refer to the following links.
1. You can do these with Azure functions, you can take a look at the below link to know more about these.
Create your first function in the Azure portal
2. You can refer to the following blog about invoke the Azure function in flow:
Invoke an Azure Function Using Power Automate (Flow)
Hope that's what you were looking for.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.