Could I use .ps1 file instead of .bat in config.ini?

i am trying to perform usage time limit, I need to store some information like address and connection time inside json file, and i can't perform this using batch file, so i need to use powershell scripting to perform this, could i replace batch files with powershell script ?

#3

thanks, i will give it a try.