PowerApps portals allow for you to write server-side logic in Liquid.