I need to call a ps1 Script during going through another ps1 file. The new call shouldn't interrupt the script which I'm going through. Also I always call the Powershell scripts like this: powershell -ExecutionPolicy Bypass -File file.ps1 -param log_14.txt due to execution policies.
I tried following code in my .ps1 script, sadly it doesn't work:
Start-Job PowerShell -Argument "sort.ps1 -file $fileName"
Any ideas how to make it work?