The alternative is making a driver module using a Java GPIO library (like PI4J).
That driver could then provide the pins as tags.
If you want to stick to scripting, you could include a Java library in Ignition, and call to that. see Adding java custom classes to Ignition . Or you could use OS calls to shell program that can communicate with the GPIO.