How to pass parameters to SQL script via Powershell on place of -inputfile param -serverinstance param\param -database param
<p>invoke-sqlcmd -inputfile "C:\Duke\DBError.sql" -serverinstance "'$svr\$inst'" -database "test"</p>

<p>this is my powershell line of code i want to use param on place of hard code string pls help me is some know the solution  </p>