Launching and stopping appium server programmtically

Hi @Hassan_Radi can you help me in this thread please