Integrated GetProcessStatusCommand with rest of program