Powershell as login script

Hello all, I have one question.

Is possible to run powershell script file .ps1 as login script in active directory environment? Because when I put for example login.ps1 as login script in profile tab of user account, this doesn't work (powershell script editor opens Smile ). I must call this script from .bat file but this is not gracefull solution.

Any ideas ???

Best reg.