You can't use PowerShell in the SCOM Authoring wizards.
Options:
- Use VBScript
Set wmi = GetObject("winmgmts://./root/cimv2")
Set svc = wmi.Get("Win32_Service.Name='Spooler'")
rc = svc.StartService
- Download the Community PowerShell MP from SquaredUp \ Cookdown - https://ds.squaredup.com/cookdown/powershell-mp/ - and use the PowerShell recovery that this provides. You code will work fine albeit the service name is hard-coded.
Get-Service -Name Spooler | Start-Service
For completeness, depending on your settings, just auto-starting the service risks an endless of loop of the service stopping, the recovery auto starting it etc. so it is best to include some logic in your PowerShell script (or VB Script) to only restart a set number of times.