SNMP TRAP message forwarding to logstash

Can anyone tell me how to forward snmp trap messages from Windows to logstash snmptrap input plugin

I get the below error in powershell while running snmptrap as a separate pipeline

Maybe post your configuration as well as the error.

And PLEASE don't post images. Copy the text and format it properly as code.