Given that Shadow and Sonic are evenly matched in ability, Shadow would come out on top against Metal Sonic.
The logic is simple: since Metal Sonic cannot even beat regular Sonic, he would struggle even more against Shadow.