wetyukmnbxc

Untitled

Mar 13th, 2023
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. In the Windows PowerShell command prompt, you can add a DLL file by using the Add-Type cmdlet. To create an object, use the New-Object cmdlet to create an instance of the DLL file's type. To call the method of the DLL file, use the Invoke-Method cmdlet. Here is an example command that shows how to do it:
  2.  
  3. Add-Type -Path "<path to dll file>"
  4. $myObject = New-Object <type name>
  5. Invoke-Method -InputObject $myObject -Name "<method name>"
Add Comment
Please, Sign In to add comment