When searching for something similar, I found your question and this one
that seems to directly answer your question.
In short, create a powershell script (or use the one you have) to create a Nuget package, and then import that package into one of your projects. Each time a project is opened, a script is executed.
source
share