PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
1,543 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to hide the windows when the bat file and ps1 file are running
Thanks for posting your question in the Microsoft Q&A forum.
I'd try using the START utility.
https://ss64.com/nt/start.html
It will start a program, command or batch script that opens in a new/separate Command Prompt window. This allows the batch's cmd window to exit in the background.
START powershell -file "D:\scripts\Powershell\xxx.ps1"
And take care of common problems with double quote: