Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We hereby consent to the incorporation by reference in the Registration Statement on Form S-8 (No. 333-212234) of Energy Services of America Corporation of our report dated July 14, 2026, relating to the financial statements and supplemental schedules of the Energy Services of America Staff 401k Retirement Savings Plan which appear in this Form 11-K for the year ended December 31, 2025.

Graphic

/s/ Urish Popeck & Co., LLC

Pittsburgh, Pennsylvania

July 14, 2026