Synthesis and Biological Evaluation of Antibacterial and Herbicidal Agents