Using an old version - 2019.1.3.1 with ArcGIS 2.7 compatability.
In my script I have where:
import fme
import fmeobjects
if __name__ == "__main__":
# Script parameters
inputLayer = feature.get.Attribute('inputLayer')
outputLocation = feature.getAttribute('outputLocation')
outputName = feature.getAttribute('outputName')