Set-Location $(Split-Path $MyInvocation.MyCommand.Path -Parent) datactl.exe apply -f base.yaml foreach ($file in $(Get-ChildItem -Path ".\data_containers")) { if ($file.GetType() -eq [System.IO.FileInfo]) { datactl.exe apply -f $file.FullName } }