;:(c) 2025 Real-Time Technology Solutions, Inc. All Rights Reserved.
;:
;: Sample QuerySurge(TM) RQM Executor Batch File
@echo off

set filePath=C:\Program Files\QuerySurge\rest\samples\testmanagement
set fileName=RQM_Script_REST.ps1

set fullPath=%filePath%\%fileName%
if not exist "%fullPath%" (
echo File not found
exit -1
)

;: Get the Outcome (an RQM-defined integer indicating the status outcome of the Scenario execution)
for /f "delims=" %%A in ('powershell -File "%fullPath%"') do set result=%%A
echo %result%
EXIT /B %results%