Based on your description, it seems that you want to update the database to a specified migration and rollback, if so, Entity Framework Core tools "Update-Database" can reach it. like below:
Update-Database 20180904195021_InitialCreate -Connection your_connection_string
And you use "Remove-Migration" to remove the last migration (rolls back the code changes that were done for the migration).
In addition, you could also generate a SQL script by using "Script-Migration" or "Script-DbContext", and choose your required script to execute on your database.
For more information, please refer to: Entity Framework Core tools reference
Best regards,
Zhanglong