Powershell cpu usage

Lately I’ve been having some issues with powershell scripts running in the background, and having high CPU usage.

I’ve found it has to do with Exchange. We’re running Exchange 2010 on SBS 2011.

I see powershell running at first seemingly random scripts, with high CPU usage.
I’ve found these scripts are stored in the windows/temp folder. They dissappear after 10-20 secs and a new one is generated.

The contents of the scripts are similar to this:

add-pssnapin exchange -erroraction SilentlyContinue 2>&1 | out-null
(Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | Select-Object TotalItemSize -First 1).TotalItemSize.Value.ToMB()

The first(bold) command/line is as far as I can tell always the same, the 2nd one differs each time.

I’m not sure what these commands are and why they are constantly running and if I can disable these somehow, some help is appreciated.