I've seen somebody do this kind of cmd format (with subprocess agruments as below) and it works:
cmd = f'ipmitool -I lan -U admin -P admin -H 10.100.7.25 fru print'
proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)