Has anyone managed to execute a PoSh script from within a Script Task?
When I started looking at this, it seemed like it would be straightforward enough and the process is described here.
But ... the DLL which that article refers to (and which appears to be necessary to execute PoSh from C#) is called System.Management.Automation.dll and, as far as I can see, it is not available by default in the .NET framework. In fact, I could not find it anywhere on my PC.
As I need to get this done, I am thinking that I will have to change my plans a little to use an Execute Process task to achieve what I want. But I would still like to know whether others have managed this and whether they did so without having to reference an external (and elusive) DLL?