'windows bat file check command output contains string

I would like to write a windows bat file to check command output contains string.

for example:

adb remount                                                                     Disabling verity for /system
Disabling verity for /vendor
Disabling verity for /product
Disabling verity for /system_ext
Now reboot your device for settings to take effect

How to check command "adb remount" output contains "Now reboot" string?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source