Made small fix to functions and added a few more powershell patterns.