Similar to PrimalForms 2011, PrimalSQL 2011 will allow you to export PowerShell GUI scripts that run your queries.
Simply design your query in PrimalSQL’s Query builder and press the “Export Query Form” button.
(Fig 1: Export the Query into a PowerShell GUI)
PrimalSQL 2011 will then generate a PowerShell script (ps1) or a PrimalForms Form (pff) depending on the option you select.
(Fig 2: Select PS1 Script or PrimalForms File)
And finally you can edit and run the script in your favorite PowerShell editor:
(Fig 2: Running the PowerShell Query GUI in PrimalForms 2011)