I tried the approach from here but not working as expected
http://hindenes.com/powershell/SQLReporting.psm1