EXHIBIT 23(b) CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM We hereby consent to the incorporation by reference in this Registration Statement on Form S-3 of CMS Energy Corporation of our report dated February 25, 2005 relating to the financial statements, management's assessment of the effectiveness of internal control over financial reporting and the effectiveness of internal control over financial reporting of Midland Cogeneration Venture L.P., which appears in CMS Energy Corporation Annual Report on Form 10-K for the year ended December 31, 2004. We also consent to the references to us under the headings "Experts" in such Registration Statement. /s/ PricewaterhouseCoopers LLP PricewaterhouseCoopers LLP Detroit, Michigan June 2, 2005