Hey, found another solution for those who have problem with insta-closing PowerShell: Create new shortcut (RMB on free space -> create), paste this:
powershell.exe -NoExit -ExecutionPolicy Bypass -File "C:\path to file\file name.ps1"
name however you want.
It worked for me, hope it help somebody else to.