Addressed converting batch files to powershell

sripts.