Invoke-Sqlcmd : The 32-bit OLE DB provider "MSOLAP" cannot be loaded in-process on a 64-bit SQL Server

  Problem description : The PowerShell command below uses to run every 5 minutes. But since 2 days, I got the error message below :  Invoke-Sqlcmd : The 32-bit OLE DB provider “MSOLAP” cannot be loaded in-process on a 64-bit SQL Server.  (Invoke-Sqlcmd -ServerInstance $R -Database SSAS_Monitor -Query “INSERT INTO dbo.SSAS_DISCOVER_SESSIONS SELECT  ‘$I’, getdate(), *…

1