• For Dynamic command I used the below and it worked.

    set @Command='Execute Database..sp_MySP "' + convert(varchar,@datetime,101) + '"'