win2pdfd.exe ispdfsearchable "sourcefile"
Returns 0 if “sourcefile” contains searchable text. Otherwise, returns a number greater than 0. If the “sourcefile” file name contains spaces, it must be enclosed with quotation marks. The "sourcefile" can be a local file path, or an web address (URL) to an existing PDF.
From the Windows CMD prompt, the return value can be referenced using the built-in %ERRORLEVEL% environment variable. This can be referenced from other Win2PDF command line options in a batch file.
From PowerShell, the page count can be referenced using $LASTEXITCODE.