RESULTS
added the -alf"C:\Secure\SAPLogin.alf" with an without tms
- PS C:\Users\dob0024> & "C:\Program Files\Winshuttle\Studio\Winshuttle.Studio.Console.exe" `
-SapQuery `
-run"MARA SQL Import" `
-lib"Qxq lib" `
-tms"SPS" `
-alf"C:\Secure\SAPLogin.alf"
- PS C:\Users\dob0024> & "C:\Program Files\Winshuttle\Studio\Winshuttle.Studio.Console.exe" `
-SapQuery `
-run"C:\Scripts\MARA SQL Import.qsq" `
-alf"C:\Secure\SAPLogin.alf"
this is the result:
Initializing Application.
Script run stopped.
Error:
No credentials are defined on the server for this system.
------------------------------
Jane Dobbs
Canadian Pacific Railway
------------------------------
Original Message:
Sent: 05-27-2026 10:50
From: Jane Dobbs
Subject: Trigger Query from Power Automate
I am now trying a PowerShell script but it's not returning any records: This script is a Query that is a direct update to a SQL Table.
$exe = "C:\Program Files\Winshuttle\Studio\Winshuttle.Studio.Console.exe"
$args = @(
"-SapQuery",
"-run `"MARA SQL Import`"",
"-lib `"Qxq lib`"",
"-tms `"SPS`""
)
Start-Process -FilePath $exe -ArgumentList $args -Wait -NoNewWindow
------------------------------
Jane Dobbs
Canadian Pacific Railway
------------------------------
Original Message:
Sent: 05-26-2026 14:37
From: Sigrid Kok
Subject: Trigger Query from Power Automate
Hi Jane
Yes it's possible.
One way is via the command line interface:
However, if you have an RPA tool/"bot" run scripts, it requires a different type of license - please see "Bot license" on this page: https://help.precisely.com/r/t/AEV-0001/2025-10-09/Automate/pub/Latest/en-US/Automate-Product-Support-and-Licensing/Automate-license-definitions
Prior you had asked about scheduling the Query runs, which is possible in Studio Manager and Evolve, without using an RPA tool/"bot". The best choice would be dependent on your use case(s).
Best Regards,
Sigrid
------------------------------
Sigrid Kok
*Precisely Software Inc.