I seem to recall this script was plagiarised recently, which seems to have been sorted, but I recall a very pertinent question on that thread about 'what if the schema was different'. Without wishing to take anything from the original Author or Authors, perhaps this may work (there may be better solutions):
DECLARE @sqlcmd NVARCHAR(MAX) = ''
SELECT @sqlcmd = @sqlcmd + 'EXEC sp_refreshview ''' + TABLE_SCHEMA + '.'+ TABLE_NAME + ''';'
FROM INFORMATION_SCHEMA.tables ISV
WHERE ISV.TABLE_TYPE = 'VIEW'