You're already checking to see if the index exists, then dropping it if it does. So just extend it with IF ELSE logic
IF EXISTS...
SET @FirstCommand='DROP INDEX...'
ELSE
SET @FirstCommand='CREATE NONCLUSTERED INDEX...'
Then you only need to do one sp_executesql for each index (instead of one drop and one create).