You don't need an HP account for this. Skip the HP Smart app and install just the basic driver for the OfficeJet Pro 8138e from HP's support site (pick the driver-only / basic driver package rather than the full software), or let Windows Update fetch the driver. Then scan with the built-in Windows Fax and Scan, or with the free NAPS2 (Not Another PDF Scanner) - both talk to the scanner directly and never ask for an account. NAPS2 is the easier option if you want multi-page scans saved as PDF.
I couldn't find the basic driver for office jet pro 8138e from hp support. With NAPS2 it says Twain Drive not found so i am still without a working scanner