Where do I have to keep my script ?

Where do I have to keep my script ?

Hi guys,

I want to execute a script when I receive an alert, but I don't know where to store my script ?
I tried on my ADAudit+ server, but looks like it doesn't work.

I tried:
- powershell.exe C:\Scripts\myscript.ps1
- C:\Scripts\myscript.ps1
- C:\Scripts\newscript.bat