#To define a particular parameter, replace the 'parameterName' inside itsm.getParameter('parameterName') with that parameter's name
path=itsm.getParameter('parameterName')#r"/Users/comodo/Desktop/myfile.conf"
command=r'echo y | rm %s'%path #Please edit your comand here.
print command
import ctypes
from subprocess import PIPE, Popen
def ecmd(command):
    obj = Popen(command, shell = True, stdout = PIPE, stderr = PIPE)
    out, err = obj.communicate()
    ret=obj.returncode
    if ret==0:
        if out:
            return out.strip()
        else:
            return ret
    else:
        if err:
            return err.strip()
        else:
            return ret
print ecmd(command)