title: Shell was unexpected at this time error in if function in batch script
body: <p>i have a script for adb batch and i'm having difficulty in checking version with batch command let this script:</p>
  <pre><code>@echo off
  set sdkversioncheck=adb shell getprop ro.build.version.sdk
  set ver=28
  if %sdkversioncheck% gtr %ver% (@echo &quot;Greater Version&quot;) else (@echo &quot;Lower Version&quot;)
  @pause &gt;NUL
  </code></pre>
  <p>i want this one to check the android version if device is plugged in and adb commands are working and whenever i try to run above command then i get this in response: <strong>shell was unexpected at this time.</strong></p>