Home > Software engineering >  How to open Powershell with cmd and use a .ps1 file
How to open Powershell with cmd and use a .ps1 file

Time:12-09

I try to open a ps1 powershell file thats updates a gitrepo

i have tryed

powershell -ExecutionPolicy Bypass -Command "& '%USERPROFILE%\folder1\update.ps1'

this is working but when it comes to a requirements.txt promt writes error of not found that file i think powershell is not inside this folder directly so it cant find that file what is needed

if i make this

cd %USERPROFILE%\ & REM First change to the batch file folder


echo Points as at = %time%            
  • Related