Using your statement 2 as an example:
Replace the SELECT with an EXECUTE, thus
EXECUTE sp_SelectMyTable ( @table=?, @date_from=?, @date_to=?)
Create the sp_SelectMyTable stored procedure:
CREATE PROCEDURE sp_SelectTable
@table varchar(50)
, @date_from datetime
, @date_to datetime
AS
EXECUTE ('SELECT...