You may be able to solve this by inserting a
sleep nn; where nn is an appropriate time for wmic to finish. Since you didn't tell us the exact error it's hard to tell, but the second system may well be waiting (and thus, "
cant be execute" until the first is complete.
If you didn't program your executable by toggling in binary, it wasn't really programming!