I'm trying to run this script by double clicking the file:
$notifyParams = @{title="XXXX";content="New Tasks Available!"}
Invoke-WebRequest -Uri https://hook.notify17.net/api/raw/XXXXX -Method POST -Body $notifyParams
I want another program to activate it automatically so Right-click> Run with Powershell won't help me.
I have tried everything suggested in this thread, nothing seems to help: Is there a way to make a PowerShell script work by double clicking a .ps1 file?
Only Right-click> Run with Powershell actually runs the script.
I have no actual knowledge in PowerShell and I did not wrote it myself, I just need to run it.