Like what if a Pokemon use Embargo on my Pokemon holding the Exp.Share.
It will not. Embargo prevents the use of items that can be used during battle, not after. Items like Exp Share are not affected, since they are not used during battle.