Creating Scripts In Powershell Foreach