How can I create executable package for OneGet Install-Package?
<p>I understand how to create a package for NuGet. There's also nothing especially hard with creating a NuGet package or PowerShell package.</p>

<p>I'm aware it may be impossible to create PowerShell package with binary cmdlet in .NET Core, so wondering if it's possible to create a package with lifecycle hooks.</p>

<p>Say, in <code>npm</code>, you can define <a href="https://docs.npmjs.com/misc/scripts#description" rel="nofollow">scripts</a> in <code>package.json</code> to declare pre/post install/publish dependencies.</p>

<p>So, the question is:</p>

<p>How can I perform custom script after having my package added to the system via <code>Install-Package</code>?</p>

<p>For example, I want to add executable to PATH (likely to be pretty common task)</p>