SQL 2008 - DBCHECK Failed
The maintenance plan is usually executed with another user account.  Check the properties of SQL Agent.  If the Connection tab specifies Use Windows Authentication, it runs under the same user as the SQL Server Agent service.  You can see that in the Local Services control panel, under the Log On tab.

Once you figure out the user account, try to run the script as that user.