Remove function CompleteScript and cpoptions

Follow up of #22: Remove deprecated function.