I am using PowerShell script to start a Java application.
$app = Start-Process -FilePath java -ArgumentList "-jar $path_to_jar" -PassThru
OR
java -jar $path_to_jar
When I am running this script, in PowerShell Core it's executing properly , but if I run the same script in normal PowerShell (Windows PowerShell) - it's giving error "Unable to access jarfile"
Even if I run PowerShell (Windows PowerShell) with Admin privilege getting same result, whereas PowerShell Core working without Admin Privileges
Any help is appreciated.