These are similar but not exactly the same
How to execute MySQL command from the host to container running MySQL server?
How to execute mysqldump command from the host machine to a mysql docker container
This command works pretty in Git Bash even on Windows:
docker exec -i some_docker_container mysql -uroot -psome_password mydb<tables.sql
Same command on Powershell says:
ERROR 1049 (42000): Unknown database 'mydb<tables.sql'
How to pass tables.sql file as parameter? (it contains some create tables statements)