This is not supported because there’s no class named “BuildScriptKt” from Kotlin’s point of view, only the file BuildScript.kt, and reflection on package files is not yet implemented. I’ve created an issue, would be glad if you left a comment there explaining your use case!
https://youtrack.jetbrains.com/issue/KT-16479