Reputation: 33
So I'm fairly new to programming so hoping someone can help me out here. I'm building a C# application that requires a powershell script, now whilst I know how to call the script using Runspaces and Pipeline, this method requires referencing the scripts location within the code, which will pose a problem if this application is to be used by someone else besides myself. Does anybody know if there is a way to add a powershell script to a project so it can be referenced instead of me having to reference a file location?
Upvotes: 3
Views: 4707
Reputation: 9049
There are a two things that come to mind:
Upvotes: 1