I'ver been banging my head on this powershell script I am working on, not sure what it is I am missing.
What I'm trying to do is get a directory listing of powershell scripts I created and then execute them.
So far I have tried the following:
# Titanium Graph Generation
$TitaniumGraphUpdates = Resolve-Path ..\*.ps1
foreach ($Name in $TitaniumGraphUpdates)
{
Write-Host executing the following .. $Name.Path
Invoke-Expression (start powershell (($Name.Path )))
}
What am I missing? another option I was trying was to export the directory to csv import but still unable to execute those scripts.
Any advice or pointers would be greatly appreciated.