I have made a PowerShell script, which is running perfectly fine and generating a text file when I run it standalone. I wanted to automate that whenever my ASP.NET page loads I invoke a process from C# that calls my PowerShell script and executes that leading to a text file being generated.
The problem is the script is being called, but not excuted. Giving some error about permissions, etc.