People - please vote for this: https://microsoftintune.uservoice.com/forums/291681-ideas/suggestions/32433451-run-powershell-script-on-a-schedule?
Currently on hybrid joined devices PowerShell scripts gets only executed once after assignment. It will not run after service restart or machine reboot. Hope that will get fixed soon.
Please...currently the powershell function in Intune is useless as there is no compliance in it. THe scripts will only rune once and after a change.....A lot of people need the same behavior like in GPOs.
Run at system boot and as an Intune extension run every hour if the agent is checking everything else also!