I was able to run my power shell script from my own directory but I am having problem when I try to run it from my short cut that I was just created.
I followed the instruction to create the short cut that I found on Google (https://winaero.com/blog/create-shortcut-ps1-powershell-file-windows-10/).
I put powershell.exe -noexit -ExecutionPolicy Bypass -File c:\data\minh\minh.ps1 in the short cut target box.
The problem is that when I double click the short cut icon, it happens to run very quickly within a split second and nothing display such as no warning error message or anything.
I wonder if you happen to know what I did wrong, please let me know.
I really appreciate any help.