i have an ps1 file witch work fine in powerISE. But in my case ,I have a c# class witch execute ps1 file and I want to set variables values from c# class .
code in PS1 powershell
function Add-CompanyContact([Microsoft.SharePoint.SPList]$list,[string]$company, [string]$name)
the company and the name are setted by users beast regards .