What I do is, send the output to a temp file & read the file in as shown below.

PS. when you have finished doing what you are doing, don't forget to delete the temp output file

Hope it helps . . .

shell '%comspec% /c net user @USERID /domain | find /i "account expires" > c:\expire.dat'

If Open (3,"C:\expire.dat") = 0
$line=ReadLine(3)
While @Error = 0
? "Line Read: [" + $line + "]"
$Expire = substr("$line",30,10)

$x=ReadLine(3)
Loop
EndIf
?"$Expire"

;Closes & Deletes Tempory File
$RC = close(3) del "c:\expire.dat"