Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Runs a batch of PowerShell scripts
- Set-Location $PSScriptRoot
- $scriptFilesArray = (
- '1.ps1',
- '2.ps1'
- )
- foreach($scriptFile in $scriptFilesArray)
- {
- & "$PSScriptRoot\$scriptFile"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement