Arduino Micro only executes code when serial is open from PC side

i will write an example code, but that will take an hour or so before i have some time, thank you so far !