After executing the PBAutoBuild220.exe file and the build file, you
                       can check if the execution is successful via the Windows command
                       errorlevel:
            
- 
                     
errorlevel = 0 indicates the process was successful.
 - 
                     
errorlevel = 1 indicates the process encountered an error.
 
You can write scripts as below to check the execution result:
Echo off
PBAutoBuild220.exe /f "D:\PB2022\SalesDemo\ps_salesdemo.json" /l Log_PSBuild.log /le Log_PSError.log /lu Log_PSUnsupport.log
If %ERRORLEVEL% == 0 (
    echo Run PBAutoBuild successfully.
) Else (
   echo Failed to run PBAutoBuild, Errorlevel is %ERRORLEVEL%.
)

