I need to write a custom powershell cmdlet in C# that would accept data and be able to enumerate over it. I have followed some examples online and have some working code.
The problem I have can be demonstrated as follows:
- I want a custom powershell cmdlet to take that output of another command as input to a parameter, so for example Get-Process
- I want my custom cmdlet to accept data in table format
- Enumerate over the data
The problem I have is that I am not sure how to setup a parameter to take a table of data in Not sure how to output data from my cmdlet in table form.
Can anyone provide any examples?