Is the following statement in a batch file unsafe?
powershell -executionpolicy bypass -File .\test.ps1
test.ps1 is located in the same folder as the batch file.
Is it possible to add something in the default powershell profile script (
C:\Users\Username\Documents\WindowsPowerShell) so that another
test.ps1 is loaded (e.g. a
test.ps1 in a
%temp% folder, instead of
test.ps1 in the same folder as the batch file)