Documentation Around Invoking Powershell Script From C# Is Sparse
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp, powershell
- Domain
- documentation
Research direction
Start with the Hosting samples and the host-application-samples documentation location named in the issue. Read the linked PowerShell issue for the guidance that unblocked the reported use case. Done means adding a Runspace Sample under Runspace Samples that documents invoking an external PowerShell file from C# with the PowerShell SDK.
Written by the indexing model from the issue text.
Description
Prerequisites
- Write a descriptive title.
- Search the existing issues.
Summary of the new document or enhancement
I struggled to find the correct way to implement invoking an external Powershell file using the Powershell SDK from C#.
I ended up having to log https://github.com/PowerShell/PowerShell/issues/16893 in order to get some help and get unblocked.
In the Hosting samples, there isn't an example that reflects the use case and the documentation the maintainer supplied was sourced from SO.
Documentation desired location: https://docs.microsoft.com/powershell/scripting/developer/hosting/host-application-samples
Proposed title
Runspace Sample 012 - Running Exter
Proposed location in the TOC
Under Runspace Samples
List of related articles to link to
https://docs.microsoft.com/powershell/scripting/developer/hosting/host-application-samples
- Dominant language
- PowerShell
- Stars
- 2.5k
- Forks
- 1.7k
- Avg merge
- 8h 45m
- Merged PRs (30d)
- 33
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MicrosoftDocs/PowerShell-Docs
-
hold-for-pr hold-for-release issue-doc-idea
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
MicrosoftDocs/PowerShell-Docs#13195 ·
-
hold-for-pr hold-for-release
Difficulty 1/5 Under an hour Newbie friendliness 88/100
MicrosoftDocs/PowerShell-Docs#12897 ·
-
Add "Avoid function / scriptblock based recursion" section to `Performance Considerations` document Openarea-sdk-docs
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
MicrosoftDocs/PowerShell-Docs#11037 · 1 reaction ·
-
issue-doc-idea needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
MicrosoftDocs/PowerShell-Docs#13289 ·
-
hold-for-pr hold-for-release
Difficulty 4/5 3-5 days Newbie friendliness 48/100
MicrosoftDocs/PowerShell-Docs#13172 ·
All issues in MicrosoftDocs/PowerShell-Docs
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·