Check status data collector set (power shell or logman)

Hello, guys! Really need your help! Reviewed many scripts, videos and articles but couldn’t find an answer!(
I’m new to powershell, so I’m asking you!

We need run check status data collector set every 5 min:

If data collector set was Stopped or server at StartUp then run it. If was running then not run new version and continue work.

Thank you in advance!