Powershell Get-service Error

I am trying to fire a command in the invoke powershell code activity which is :

Get-Service | Where Status -eq "Running"

Which is perfectly giving me the needed output

But when I am trying to do the same from the activity it says :

image

This is how I have adjusted the commmand in the activity :

image

Can anybody suggest where am I going wrong ?