Dynamic SQL - 17003 Invalid column index

I use this simple query to test the DynamicSQL. I only want to know why this DynamicSQL don’t work !!! What have I missed ?