powershell report workflow run history parameters

I'm trying to provide people with a powershell report on the run history of a workflow, and include the parameters that were defined on them.

You can see the parameter if you right-click the workflow and check the run history from there. But I'm unable to find that information using powershell

I tried get-qarsworkflowinstance and get-qarsoperation

If there's no command for it, is there maybe a way to query this through SQL? I browsed through the tables in the DB but couldn't figure it out