Just change the value of the _TABLE_NAME variable (constant):
DO $$
DECLARE
_fk TEXT[];
_primary_key TEXT;
_column TEXT;
_foreign_keys TEXT[];
_TABLE_NAME CONSTANT TEXT NOT NULL := 'the name name of the table to migrate';