Go to Layout[“Pending Shipment”(Invoices)]
Enter Find Mode 
Set Field [Invoices::Shipping Status ; "Pending"]
Set Error Capture [on]
Perform Find 
The script can be performed by button click or by the OnLayoutEnter script trigger. If you only perform the script from this trigger, the first line of this script can be omitted.
See this thread for other examples of scripted finds: Scripted Find Examples
Thank you. it is working great