I have a number of scripts on a tool server which retrieve various bits of data, munge them around, and spit out emails and update databases. As part of some code clean up, I’m looking for tools and processes by which I can take source code and deploy it alternatively in either test or production scenarios. This would entail pushing to directories and setting variables to the appropriate test or production servers (DB end points and prod/test API targets). This sounds like a scenario for some sort of make like functionality. All the queries I’ve done seem to focus on using PowerShell to enhance make for other languages (C#, etc.) and not on build environments for PowerShell scripts themselves.
Before I take all my statically defined scripts and start re-inventing the wheel, has anyone tackled this problem before? Any tools or processes that you can recommend?