Yes.
Your question is pretty vague: do you use a powershell script to create an object from a C # assembly, and then use that object? If so, just set the property of the line you need and access it as usual from powershell.
Or, if it's a static method, you can just call it
[My.Assembly.Type]::GetSomeString()
If you use C # exe, you can simply output it using a string and powershell will pick it up:
.\myexe.exe > $someVar
Or you can write it as a cmdlet , and your C # code can participate in the pipeline.