Hi all
I am calling the a script from another script using the following command:
Start-Process powershell_ISE “$PSScriptRoot!AD_UsrGrp_Chk.ps1”
It open up the powershell ise and script, but it does not run the script and I want to run it after it opens automatically, without any interaction. Currently it looks like below:
I want to run the script after it open automatically.
Any help would be much appreciated.
Please do not post images of code … instead post the plain text formatted as code.
When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
To call a PowerShell script from inside another PowerShell script you don’t need Start-Process. Instead simply call the script by its name (including its path if it’s not in the current working directory)
.\!AD_UsrGrp_Chk.ps1
Do you really have an exclamation mark in your script file name?