Does For /r Windows CMD has %errorlevel$?

When I run this line

for /f "delims=" %a in ('"for /r D: %b in (ospp.vbs)do @if exist %b 
echo %~dpb&exit"')do @cd/d%a&&cscript ospp.vbs /dstatus

It feels like the cscript ospp.vbs /dstatus is not running (D is not the install location of Office). So it should show the error:

Input Error: Can not find script file “D:ospp.vbs”.

But I don’t see any input error. Can anyone please solve it ?1