scripts: add run_command to security-check.py
scripts: add run_command to security-check.py

Deduplicate all the subprocess code as mentioned in 18713.


Former-commit-id: 7e13c90e0e3f560b460d4cbc9e62dac09bb3e176
syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin