Detect Powershell

Is there a way to detect Powershell usage?

@swagatdasgupta can you answer this one?