moved run_commands to network_wrapper
copied and pasted linux-based run_commands