0x2f516689…b59fsent to0xf94aa98b…e9e6·#5,355,118·view on Etherscan
I am experienced with wallets. Based on your statement, I would envision the script you're describing would simply make RPC calls to the wallet, which would result in your ERC20 smart contract being called to manage the deposits and withdrawls. I'd of course need more information, but orchestrating this sort of thing in a secure manner is fairly straightforward.