Is it possible to import and invoke a Cmdlet from a DLL that is not in the PATH directories?
I want to write a build script with powershell that is able to compress the results. Therefore I found 7Zip4Powershell Cmdlets (Source), but I am unable to invoke them.
You can use the Import-Module command to load a PowerShell module. Therefore, you should be able to use:
Import-Module C:\Temp\7Zip4Powershell.dll
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With