Post-install script files can be named anything one desires, but the class within the file must be the same name as the file with all path separators replaced by underscores. In other words, this
postinstall script:
Path/To/Script.php
Must contain a class named Path_To_Script. Due to casing differences between operating systems, it is recommended to always use lowercased file names.