I think you should read about Powershell and you will get the answer to your question very easily. There are lots articles here in SSC itself about these scripting languages.
After looking at it if you still have any questions, please feel free to ask. We could help you in length.