Control a DLL Using Powershell

Hello I’m looking for some guidance on how I would be able to control a DLL file using a PowerShell script or what is the best way to achieve this. The DLL when run does nothing until it receives a particular value. I believe the only values it can receive are 0 or 1 and depending on the value it receives it will perform particular function in the application which runs in a web browser. I’m fairly new to learning and using PowerShell so any help would be great.


Maybe this will help: