SetItemDataSources
. I think your line
$myDataSource
variable needs to be adjusted in how you are trying to set that up. [1]:
http://adventuresinsql.com/2010/11/how-do-i-change-ssrs-report-credentials-with-powershell/
4 People are following this question.