I use visual studio to update all my environments with a certain migration. It had worked fine using the command below.
update-database -Migration initMigrat
To set the ASPNETCORE_ENVIRONMENT variable in Package Manager Console (PMC) , inside visual studio, to Production use this command first
$env:ASPNETCORE_ENVIRONMENT='Production'
Then you can use
Update-Database
normally.