I use this script and want to parametrize the path for saving the chart:
DECLARE @pscript nvarchar(MAX); DECLARE @path