The bank account was not mine. Belonged to a friend. The checks were in my name. The bank did not return to IRS instead deposited it in her account and she refuses to give me my money
You have a legal issue that the IRS will not get in the middle of ... talk to the bank and a lawyer and then NEVER to this again.
It's between you and your friend. The IRS used the account information that you gave them when you filed your tax return. What the IRS sends to the bank is not a check. It's an electronic deposit with the account information that you gave them. The bank deposited it in the account that was designated in the electronic deposit. Essentially the IRS and the bank followed your instructions as to where to send your deposits.
Some banks check the name on the electronic deposit, but they are not required to, and many banks do not check. Obviously your friend's bank is one that does not check.
Here is what the IRS says about entering incorrect banking information
https://ttlc.intuit.com/questions/1901159-can-i-deposit-my-tax-refund-into-someone-else-s-account