I have over 20 Powershell scripts that I want to run on a schedule. Ultimately, I want to have 1 "master" script that will run the others in the folder via task scheduler.
The master script is below:
$folderLocation = "C:\scripts\"
$items = Get-ChildItem -Path $folderLocation
foreach ($item in $items)
if ($item.Attributes -ne "Directory")
When I run the master Powershell script it runs the 3 other Powershell scripts I have in the folder so far. However, it keep re-running the same scripts over and over. I only want the master script to run the other scripts once.